/* Contact Page Header - Hero Style */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.18), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.7);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-header p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Partnership Opportunities Section */
.partnership-opportunities {
    padding: 80px 0;
    background: #ffffff;
}

.partnership-opportunities .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partnership-opportunities .section-header h2 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partnership-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.partnership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.partnership-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.partnership-card:hover .partnership-icon {
    transform: scale(1.1) rotate(5deg);
}

.partnership-card h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partnership-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Page Styles */
.contact-content {
    padding: 60px 0;
    background: #f7fafc;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form Section */
.contact-form-section {
    order: 1;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Contact Info Section */
.contact-info-section {
    order: 2;
}

.contact-info {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4FACFE;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.2);
}

.method-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.method-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-content p {
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.method-content p:last-child {
    margin-bottom: 0;
}

/* Social Connect */
.social-connect {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-connect h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* New Sidebar Button Styles */
.sidebar-social-list {
    display: flex;
    flex-direction: column; /* Stack them vertically for a cleaner look */
    gap: 12px;
    margin-top: 15px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon and text */
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent background */
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-btn:hover {
    background-color: var(--primary); /* Use brand blue on hover */
    border-color: var(--primary);
    transform: translateX(5px);
}

.sidebar-btn span {
    font-size: 0.95rem;
}

.sidebar-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 0;
    background: none;
}

.sidebar-btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Sidebar Social Buttons - Specific styling for contact info card */
.sidebar-social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    border-radius: 0;
    background: none;
}

.sidebar-social-btn i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
    background: none;
}

.sidebar-social-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Keep generic .social-link for other uses (like footer) */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.social-link:hover svg,
.social-link:hover i {
    color: white;
    fill: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.social-link i {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.social-link.github:hover {
    border-color: #333;
    color: #333;
}

.social-link.discord:hover {
    border-color: #7289da;
    color: #7289da;
}

.social-link.youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* FAQ Quick Links */
.faq-quick-links {
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.faq-quick-links h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-quick-links p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(5px);
}

.faq-link i {
    color: #667eea;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.faq-link:hover i {
    color: white;
}

/* Map Section */
.map-section {
    padding: 60px 0 0;
    background: #ffffff;
    position: relative;
}

.map-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: 
        linear-gradient(to bottom, transparent 0%, rgba(247, 250, 252, 0.5) 50%, #f7fafc 100%);
    pointer-events: none;
    z-index: 1;
}

.footer {
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-header h2 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.map-header p {
    color: #4a5568;
    font-size: 1.1rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f7fafc;
}

.map-container iframe {
    border-radius: 16px;
}

.map-container iframe {
    display: block;
}

/* Contact CTA */
.contact-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: white;
    text-align: center;
}

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

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta .btn-primary {
    background: white;
    color: #0F172A;
    font-weight: 600;
}

.contact-cta .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.contact-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.contact-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partnership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-section {
        order: 2;
    }

    .contact-info-section {
        order: 1;
    }

    .contact-info {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .partnership-opportunities {
        padding: 60px 0;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partnership-card {
        padding: 2rem;
    }

    .contact-content {
        padding: 40px 0;
    }

    .contact-form-section .form-container {
        padding: 2.5rem;
    }

    .contact-info {
        padding: 2rem;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.25rem;
    }

    .social-connect {
        padding: 1.5rem;
    }

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

    .sidebar-social-btn {
        width: 100%;
    }

    .sidebar-social-btn i,
    .sidebar-social-btn svg {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .social-link {
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }

    .social-link i,
    .social-link svg {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .social-link span {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .partnership-opportunities .section-header h2 {
        font-size: 2rem;
    }

    .contact-form-section .form-container {
        padding: 2rem;
    }
    
    .contact-form-section .form-header h2 {
        font-size: 1.75rem;
    }
    
    .method-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .method-icon {
        margin: 0 auto;
    }

    .social-connect {
        padding: 1rem;
    }

    .social-links {
        flex-direction: column;
    }

    .sidebar-social-btn {
        width: 100%;
    }

    .sidebar-social-btn i,
    .sidebar-social-btn svg {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .social-link {
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }

    .social-link i,
    .social-link svg {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

/* Contact Page Animations */
.contact-form-section {
    animation: slideInLeft 0.8s ease-out;
}

.contact-info-section {
    animation: slideInRight 0.8s ease-out;
}

.contact-method {
    animation: fadeInUp 0.8s ease-out;
}

.contact-method:nth-child(1) { animation-delay: 0.1s; }
.contact-method:nth-child(2) { animation-delay: 0.2s; }
.contact-method:nth-child(3) { animation-delay: 0.3s; }
.contact-method:nth-child(4) { animation-delay: 0.4s; }

.social-link {
    animation: fadeInUp 0.8s ease-out;
}

.social-link:nth-child(1) { animation-delay: 0.5s; }
.social-link:nth-child(2) { animation-delay: 0.6s; }
.social-link:nth-child(3) { animation-delay: 0.7s; }
.social-link:nth-child(4) { animation-delay: 0.8s; }
.social-link:nth-child(5) { animation-delay: 0.9s; }

.faq-link {
    animation: fadeInUp 0.8s ease-out;
}

.faq-link:nth-child(1) { animation-delay: 1.0s; }
.faq-link:nth-child(2) { animation-delay: 1.1s; }
.faq-link:nth-child(3) { animation-delay: 1.2s; }
.faq-link:nth-child(4) { animation-delay: 1.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Contact Form Specific Styles */
.contact-form-section .form-container {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.contact-form-section .form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-form-section .form-header h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.contact-form-section .form-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    border-radius: 2px;
}

.contact-form-section .form-header p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4FACFE;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    filter: brightness(1.05);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.contact-form-section .form-section {
    margin-bottom: 2rem;
}

.contact-form-section .form-section:last-child {
    margin-bottom: 0;
}

/* Map Loading State */
.map-container {
    position: relative;
    min-height: 450px;
}

.map-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #4a5568;
}

.map-container.loading::after {
    content: 'Loading map...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4a5568;
    font-size: 1.1rem;
}

/* Contact Form Success Animation */
.contact-form-section .success-message {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects Enhancement */
.contact-method:hover .method-icon {
    transform: scale(1.1);
}

.social-link:hover i {
    transform: scale(1.2);
}

.faq-link:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Focus States for Accessibility */
.social-link:focus-visible,
.faq-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-form-section,
    .social-connect,
    .faq-quick-links,
    .map-section,
    .contact-cta {
        display: none;
    }

    .contact-info {
        box-shadow: none;
        border: 1px solid #000;
    }

    .contact-method {
        break-inside: avoid;
    }
}
