/* Ando-inspired Contact Page Styles */
.contact-page {
    background: var(--bg-primary);
}

.contact-hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
    text-align: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.05), transparent);
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-hero p {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.contact {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
}

.contact-info {
    flex: 0 0 350px;
    order: 1;
}

.contact-form-wrapper {
    flex: 0 0 700px;
    order: 2;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 4px;
}

.info-block {
    background: var(--bg-secondary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateX(10px);
}

.info-block h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: block;
    width: 100%;
}

.info-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: block;
    width: 100%;
}

.info-block.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-block.contact p {
    margin-bottom: 0.75rem;
}

.info-block.contact p:last-child {
    margin-bottom: 0;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 3rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-secondary);
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.form-group input:focus ~ .line,
.form-group textarea:focus ~ .line {
    height: 2px;
    background: var(--text-primary);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--accent);
}

.btn-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: var(--bg-primary);
    border-radius: 50%;
    animation: loading 1.4s infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.success-message,
.error-message {
    display: none;
    padding: 1rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background: rgba(75, 181, 67, 0.1);
    color: #4BB543;
}

.error-message {
    background: rgba(255, 76, 76, 0.1);
    color: #FF4C4C;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-submitting .btn-text {
    opacity: 0;
}

.form-submitting .btn-loading {
    display: block;
}

.form-success .success-message,
.form-error .error-message {
    display: block;
}

@media (max-width: 1200px) {
    .contact-container {
        gap: 4rem;
    }
    
    .contact-info {
        flex: 0 0 300px;
    }
    
    .contact-form-wrapper {
        flex: 0 0 600px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        max-width: 600px;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
        flex: none;
    }
}

.form-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-primary);
    margin-top: 80px; /* Add space for the navbar */
}

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

.form-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-section .section-header p {
    font-size: 1.1rem;
    color: var(--accent);
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 4px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-form .form-group {
    margin-bottom: 2.5rem;
}

.project-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: static; /* Override floating label style */
    transform: none;
    transition: none;
}

.project-form input:focus + label,
.project-form textarea:focus + label,
.project-form input:valid + label,
.project-form textarea:valid + label {
    top: auto; /* Reset floating label behavior */
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group.file-upload label {
    margin-bottom: 0.75rem;
    color: var(--text-primary); /* Make file label slightly more prominent */
}

.form-group.file-upload input[type="file"] {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: none; /* Remove border for file input */
}

.form-group.file-upload small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Add a specific style for the form page body if needed */
.form-page {
    /* Optional styles specific to the form page */
}

.form-page main {
    padding-top: 120px; /* Increased padding to account for navbar and provide breathing room */
}

@media (max-width: 768px) {
    .form-page main {
        padding-top: 100px; /* Adjusted for mobile */
    }
} 