/* Contact Page Styles */

#contact {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

#contact .section__text__p1 {
    color: var(--color-text-dark);
}

#contact .title {
    margin-bottom: 2.5rem;
}

/* Two-column layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    width: 100%;
    align-items: start;
}

/* ---- Info Panel ---- */
.contact-info-panel {
    background: var(--color-bg-mid);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid rgba(74, 112, 144, 0.3);
    color: var(--color-text-light);
    position: sticky;
    top: 90px;
}

.contact-panel-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.contact-panel-desc {
    color: var(--color-text-muted) !important;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(74, 112, 144, 0.15);
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 112, 144, 0.2);
    text-decoration: none;
    transition: all var(--transition);
    color: var(--color-text-light);
}

.contact-link-item:hover {
    background: rgba(74, 112, 144, 0.3);
    border-color: var(--color-accent);
    transform: translateX(4px);
    color: var(--color-text-light);
}

.contact-link-item:hover::after {
    display: none;
}

.contact-link-icon {
    font-size: 1.4rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 112, 144, 0.2);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-link-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.contact-link-value {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.contact-response-note {
    font-size: 0.85rem;
    color: var(--color-text-muted) !important;
    text-align: center;
    opacity: 0.8;
}

/* ---- Form Panel ---- */
.contact-form-panel {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid rgba(74, 112, 144, 0.15);
    box-shadow: 0 10px 30px rgba(28, 51, 71, 0.08);
    position: relative;
    overflow: hidden;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 0.65rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 112, 144, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e05555;
    box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #3aaa6a;
}

.form-error {
    font-size: 0.8rem;
    color: #e05555;
    min-height: 1rem;
    font-weight: 500;
}

.char-count {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 400;
}

.char-count.warn {
    color: #e08a30;
}

.char-count.limit {
    color: #e05555;
}

/* Submit button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: var(--color-text-light);
    border: none;
    border-radius: 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 5px 15px rgba(74, 112, 144, 0.3);
    width: 100%;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--color-bg-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 112, 144, 0.4);
}

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

.btn-submit.loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit-icon {
    transition: transform var(--transition);
}

.btn-submit:hover .btn-submit-icon {
    transform: translateX(4px);
}

/* Success state */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 3rem 2rem;
    animation: fadeIn 0.4s ease forwards;
}

.form-success.visible {
    display: flex;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-bg-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.form-success p {
    color: #666;
}

.btn-reset {
    margin-top: 0.5rem;
    padding: 0.65rem 1.75rem;
    background: transparent;
    border: 2px solid var(--color-accent);
    border-radius: 2rem;
    color: var(--color-accent);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-reset:hover {
    background: var(--color-accent);
    color: white;
}

/* ---- About Page Stats ---- */
.about-stats {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-mid);
    border: 1px solid rgba(74, 112, 144, 0.3);
    border-radius: var(--radius-card);
    padding: 1rem 1.5rem;
    min-width: 90px;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ---- Tech Stack Filter ---- */
.filter-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 2rem;
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-text-light);
    box-shadow: 0 4px 12px rgba(74, 112, 144, 0.3);
}

.details-container.hidden {
    display: none;
}

/* ---- Projects Grid ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}

.projects__desc-body {
    margin-top: 0.5rem;
    font-size: 0.9rem !important;
    line-height: 1.7;
    color: var(--color-text-muted) !important;
}

.projects__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed rgba(74, 112, 144, 0.4);
    border-radius: 1rem;
    width: 100%;
}

.project-placeholder span {
    font-size: 3rem;
}

.project-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* ---- Responsive ---- */
@media screen and (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        position: static;
    }
}

@media screen and (max-width: 600px) {
    .contact-form-panel,
    .contact-info-panel {
        padding: 1.5rem;
    }

    .about-stats {
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
