/* Homepage Specific Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gold-gradient: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --hover-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px; /* Updated to compensate for increased navbar height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="suits" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="rgba(255,255,255,0.03)"/><text x="25" y="30" text-anchor="middle" font-size="20" fill="rgba(255,255,255,0.1)" font-family="serif">♠</text></pattern><pattern id="hearts" x="50" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="rgba(255,255,255,0.03)"/><text x="25" y="30" text-anchor="middle" font-size="20" fill="rgba(255,255,255,0.1)" font-family="serif">♥</text></pattern><pattern id="diamonds" x="0" y="50" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="rgba(255,255,255,0.03)"/><text x="25" y="30" text-anchor="middle" font-size="20" fill="rgba(255,255,255,0.1)" font-family="serif">♦</text></pattern><pattern id="clubs" x="50" y="50" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="rgba(255,255,255,0.03)"/><text x="25" y="30" text-anchor="middle" font-size="20" fill="rgba(255,255,255,0.1)" font-family="serif">♣</text></pattern></defs><rect width="200" height="200" fill="url(%23suits)"/><rect x="50" y="0" width="150" height="200" fill="url(%23hearts)"/><rect x="0" y="50" width="200" height="150" fill="url(%23diamonds)"/><rect x="50" y="50" width="150" height="150" fill="url(%23clubs)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-align: center;
    width: 100%;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
    100% { filter: drop-shadow(0 0 40px rgba(255,255,255,0.6)); }
}

.hero-subtitle {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: var(--text-shadow);
    letter-spacing: 0.05em;
    line-height: 1.3;
    background: linear-gradient(45deg, #fff, #f0f0f0, #e8e8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: subtitleGlow 4s ease-in-out infinite alternate;
    text-align: center;
    width: 100%;
    transform: translateX(0.2em);
}

@keyframes subtitleGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
        transform: translateX(0.2em) scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
        transform: translateX(0.2em) scale(1.02);
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-primary {
    background: var(--gold-gradient);
    color: #2c3e50;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(241, 196, 15, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.cta-tertiary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cta-tertiary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Tournament Info Cards */
.tournament-info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.tournament-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--primary-gradient);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-card .highlight {
    color: #e74c3c;
    font-weight: 600;
}

/* Tournament Flyer Section */
.flyer-section {
    padding: 5rem 0;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flyer-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
    display: block;
    text-align: center;
}

.flyer-container:hover {
    transform: scale(1.02);
    box-shadow: none;
}

.tournament-flyer-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 auto;
    /* Edge compatibility fixes */
    object-fit: contain;
    background-color: transparent;
    border: none;
    /* Fallback for broken images */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDQwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI0MDAiIGhlaWdodD0iMzAwIiBmaWxsPSIjZjhmOWZhIi8+Cjx0ZXh0IHg9IjIwMCIgeT0iMTUwIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iMTgiIGZpbGw9IiM2Yzc1N2QiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkltYWdlIExvYWRpbmcuLi48L3RleHQ+Cjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.flyer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.flyer-container:hover .flyer-overlay {
    opacity: 1;
}

.flyer-actions {
    display: flex;
    gap: 1rem;
}

.download-btn, .share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--gold-gradient);
    color: #2c3e50;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.instagram-btn {
    background: linear-gradient(135deg, #E4405F 0%, #F56040 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

/* Birthday Section */
.birthday-section {
    padding: 6rem 0;
    background: white;
    color: #2c3e50;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.birthday-content {
    position: relative;
    z-index: 2;
}

.birthday-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.birthday-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

.contact-item {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.contact-item h4 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.contact-item p {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .flyer-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .tournament-flyer-image {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }
    
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-item {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .contact-item h4 {
        font-size: 1.5rem;
    }
    
    .contact-item p {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
    }
    
    .contact-item h4 {
        font-size: 1.3rem;
    }
    
    .contact-item p {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
