/* Contact Page Styles */

/* Hero Section Contact */
#hero-contact {
    padding: 12rem 3rem 6rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

#hero-contact .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

#hero-contact .hero-content h1 span {
    color: var(--primary-yellow);
    text-shadow: 0 0 20px rgba(252, 207, 3, 0.8);
}

#hero-contact .hero-tagline {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Contact Block Section */
#contact-block {
    padding: 4rem 3rem;
    background: var(--darker-bg);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    min-height: 500px;
    background: linear-gradient(135deg, var(--gray-60) 0%, var(--dark-bg) 100%);
}

/* Preview State */
.contact-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    transition: opacity 0.3s ease;
    min-height: 500px;
}

.contact-visual {
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.contact-preview h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-preview p {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Expanded State */
.contact-expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    background: inherit;
    overflow-y: auto;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    height: 100%;
    align-items: start;
}

.contact-form-section h3,
.contact-info-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(252, 207, 3, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    background: var(--primary-yellow);
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-submit:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 207, 3, 0.5);
}

/* Contact Info Styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(252, 207, 3, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(252, 207, 3, 0.1);
    transform: translateX(5px);
}

.contact-icon-small {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark-bg);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.4;
}

/* Hover Effects */
.contact-card:hover:not(.clicked-open) {
    transform: scale(1.02);
    box-shadow: 
        0 20px 60px rgba(252, 207, 3, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.contact-card:hover:not(.clicked-open) .contact-preview {
    opacity: 0;
    visibility: hidden;
}

.contact-card:hover:not(.clicked-open) .contact-expanded {
    opacity: 1;
    visibility: visible;
}

.contact-card:hover:not(.clicked-open) .contact-icon {
    transform: scale(1.2) rotate(10deg);
    animation-play-state: paused;
}

/* Clicked Open State */
.contact-card.clicked-open {
    transform: scale(1.02);
    box-shadow: 
        0 20px 60px rgba(252, 207, 3, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Navigation Active State */
nav li.active {
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-expanded {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #hero-contact {
        padding: 10rem 1.5rem 4rem;
    }
    
    #hero-contact .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #contact-block {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0;
    }
    
    .contact-card {
        margin: 0;
        border-radius: 15px;
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .contact-preview {
        display: none !important;
    }
    
    .contact-expanded {
        position: relative;
        opacity: 1;
        visibility: visible;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
        padding: 1rem;
        background: var(--card-bg);
        border-radius: 15px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        margin: 0;
    }
    
    .contact-split {
        height: auto;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
        display: block;
    }
    
    .contact-form-section,
    .contact-info-section {
        margin: 0;
        padding: 0;
    }
    
    .contact-form-section {
        margin-bottom: 2rem;
    }
    
    .contact-preview h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-preview p {
        font-size: 1rem;
    }
    
    .contact-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-expanded {
        padding: 1rem;
    }
    
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        order: 1;
    }
    
    .contact-form-section h3,
    .contact-info-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Form optimizations for mobile */
    .contact-form .form-group {
        margin-bottom: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: 8px;
    }
    
    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    /* Contact details mobile optimization */
    .contact-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .contact-icon-small {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-yellow);
        border-radius: 8px;
    }
    
    .contact-icon-small svg {
        width: 20px;
        height: 20px;
        color: var(--dark-bg);
    }
    
    .contact-text {
        flex: 1;
    }
    
    .contact-label {
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }
    
    .contact-value {
        display: block;
        font-size: 1rem;
        color: var(--text-light);
        font-weight: 500;
    }
    
    /* Auto-expand contact card on mobile */
    .contact-card {
        transform: scale(1.02);
        box-shadow: 
            0 20px 60px rgba(252, 207, 3, 0.2),
            0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .contact-card .contact-preview {
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .contact-card .contact-expanded {
        opacity: 1;
        visibility: visible;
    }
}