/* ===================================
   CONTACT PAGE - Cinematic Centered Design
   =================================== */

.contact-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   MAIN WRAPPER & HERO
   =================================== */

.contact-main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.contact-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
    margin: 1.5rem auto;
    opacity: 0.5;
    animation: lineGrow 1s ease-out forwards 1.2s;
    transform-origin: top;
    transform: scaleY(0);
}

@keyframes lineGrow {
    to {
        transform: scaleY(1);
    }
}

/* ===================================
   FORM CONTAINER & STYLING
   =================================== */

.form-container {
    width: 100%;
    animation: heroNameReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s;
    opacity: 0;
    transform: translateY(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-row {
    display: flex;
    gap: var(--spacing-lg);
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    position: relative;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(var(--bg-primary-rgb), 0.5);
    border: 1px solid rgba(var(--text-primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(var(--bg-primary-rgb), 0.8);
    border-color: rgba(var(--text-primary-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--text-primary-rgb), 0.1);
}

.form-group:focus-within label {
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(var(--text-primary-rgb), 0.3);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   SUBMIT BUTTON
   =================================== */
.submit-button {
    margin-top: var(--spacing-sm);
    padding: 1.25rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    align-self: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(var(--text-primary-rgb), 0.2);
    background: #fff;
}

.submit-button i {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.submit-button:hover i {
    transform: translateX(5px) scale(1.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 820px) {
    .contact-form {
        padding: 2.5rem;
    }
}

@media (max-width: 600px) {
    .contact-hero-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .contact-form {
        padding: 2rem 1.5rem;
        gap: var(--spacing-md);
    }

    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .submit-button {
        width: 100%;
    }
}