/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(26, 35, 126, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 235, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.main-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 20px rgba(26, 35, 126, 0.4));
}

.team-info {
    text-align: center;
}

.team-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.team-tagline {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Social Links Section */
.social-section {
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    /* Simplified Safari-compatible flexbox */
    display: block;
    position: relative;
    padding: 1.5rem;
    background: rgba(26, 35, 126, 0.3);
    border: 1px solid rgba(26, 35, 126, 0.4);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
}

/* Create flexbox layout with floats for Safari */
.social-link::after {
    content: "";
    display: table;
    clear: both;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.5) 0%, rgba(30, 39, 46, 0.3) 100%);
    border-color: rgba(255, 235, 59, 0.4);
    -webkit-transform: translateY(-2px); /* Safari compatibility */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.3);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    float: left;
    text-align: center;
    line-height: 50px;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.social-link.instagram .social-icon {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.social-link.youtube .social-icon {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.social-text {
    float: left;
    max-width: calc(100% - 120px);
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.social-subtitle {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    display: block;
}

.social-arrow {
    color: #888;
    font-size: 0.9rem;
    float: right;
    line-height: 50px;
}

.social-link:hover .social-arrow {
    color: #ffeb3b;
    transform: translateX(3px);
}

/* Sponsors Section */
.sponsors-section {
    margin-bottom: 3rem;
}

.sponsors-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.2) 0%, rgba(30, 39, 46, 0.1) 100%);
    border: 1px solid rgba(26, 35, 126, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.sponsor-item:hover {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.3) 0%, rgba(30, 39, 46, 0.2) 100%);
    border-color: rgba(255, 235, 59, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.2);
}

.sponsor-logo-container {
    /* Ultra-simple Safari-compatible layout */
    float: left;
    max-width: 85%;
    height: 50px;
    line-height: 50px;
}

.sponsor-img {
    /* Basic image styling for Safari */
    max-width: 100%;
    max-height: 50px;
    height: auto;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.sponsor-item:hover .sponsor-img {
    /* Simple opacity for Safari */
    opacity: 0.85;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 35, 126, 0.3);
}

.footer p {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-container {
        padding: 1.5rem 1rem;
    }
    
    .main-logo {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 2rem;
    }
    
    .social-link {
        padding: 1.25rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .sponsors-grid {
        gap: 0.75rem;
    }
    
    .sponsor-logo-container {
        height: 45px;
    }
    
    .sponsor-item {
        padding: 0.75rem;
    }
    
    .sponsor-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .sponsor-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .team-name {
        font-size: 1.8rem;
    }
}
