/* Contact Section */
.contact-section {
    position: relative;
    padding: 100px 24px;
    background-color: var(--body-bg);
    overflow: hidden;
    padding-block: 250px;


    .contacts-container {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 10;


        .content-grid {
            display: grid;
            /* grid-template-columns: 1fr; */
            gap: 48px;
            align-items: start;


            .form-container {
                opacity: 0;
                transform: translateX(30px);
                animation: fadeInRight 0.6s ease forwards;


                .form-wrapper {
                    background: var(--hero-bg);
                    padding: 32px;
                    border-radius: 32px;
                    border: 2px solid transparent;
                    background-clip: padding-box;
                    position: relative;

                    form {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;

                        .form-group {
                            margin-bottom: 20px;
                            width: 100%;

                            label {
                                display: block;
                                margin-bottom: 8px;
                                color: var(--hero-btn-primary-bg);
                                font-size: 12px;
                                text-transform: uppercase;
                                letter-spacing: 0.5px;
                            }

                            input,
                            textarea {
                                width: 100%;
                                padding: 12px 16px;
                                border-radius: 16px;
                                background: transparent;
                                border: 1px solid var(--text-secondary-invert);
                                color: var(--hero-text);
                                font-size: 16px;
                                font-family: inherit;
                                transition: all 0.3s ease;
                            }


                            input::placeholder,
                            textarea::placeholder {
                                color: var(--text-secondary-invert);
                                opacity: 0.5;
                            }

                            input:focus,
                            textarea:focus {
                                outline: none;
                                border-color: var(--text-primary);

                            }

                            textarea {
                                resize: none;
                            }

                            .theme-toggle {
                                position: fixed;
                                top: 20px;
                                right: 20px;
                                z-index: 1000;
                                width: 50px;
                                height: 50px;
                                border-radius: 50%;
                                border: 2px solid var(--hero-border);
                                /* background: var(--hero-tag-bg); */
                                cursor: pointer;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                transition: all 0.3s ease;

                            }

                            .theme-toggle:hover {
                                transform: scale(1.1);
                                border-color: var(--hero-btn-primary-bg);
                            }

                            .theme-toggle svg {
                                width: 24px;
                                height: 24px;
                                stroke: var(--hero-text);
                            }

                            .moon-icon {
                                display: none;
                            }


                        }
                    }
                }

            }



            .contact-info {


                .contact-info-header {
                    display: flex;
                    align-items: flex-end;
                    gap: 20px;

                    img {
                        width: 150px;
                    }

                    h1 {
                        text-align: center;
                        font-family: 'DG Trika', sans-serif;
                        color: var(--text-primary);
                        font-size: 32px;
                        font-weight: 900;
                        margin-bottom: 10px;
                        line-height: normal;
                    }

                }

                h3 {

                    font-family: 'DG Trika', sans-serif;
                    color: var(--text-secondary-invert);
                    font-size: 20px;
                    font-weight: 500;
                    margin-bottom: 10px;
                    line-height: normal;
                    margin-bottom: 32px;
                }

                .tapered-line {
                    height: 8px;

                    max-width: 1100px;
                    padding-inline: 50px;
                    margin: 20px auto;
                    text-align: center;

                    justify-content: center;
                    /* overall height */
                    border: none;
                    /* remove default <hr> border */
                    background: var(--gradient-secondary);
                    border-radius: 2px;
                    /* smooth edges */

                    /* spacing around the line */
                }


                .contact-info-grid {
                    display: grid;
                    grid-template-columns: repeat(2, 1fr);
                    gap: 48px;
                    align-items: start;



                    .contact-info-detail {
                        h2 {
                            font-family: 'DG Trika', sans-serif;
                            color: var(--text-secondary-invert);
                            font-size: 26px;
                            font-weight: 900;
                            margin-bottom: 10px;
                            line-height: normal;
                            margin-bottom: 12px;
                        }

                        p {
                            font-family: 'DG Trika', sans-serif;
                            color: var(--text-secondary-invert);
                            font-size: 20px;
                            font-weight: 500;
                            margin-bottom: 10px;
                            line-height: normal;
                            margin-bottom: 32px;
                        }
                    }
                }

            }


        }


    }



}














@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}









@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}








.submit-btn {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--text-primary);
    border: none;
    color: var(--gray-100);
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;

}

.submit-btn:hover {

    background: var(--text-primary);
    color: var(--gray-100);
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.95);
}

.submit-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 16px;
    }
    .contacts-header {
        margin-bottom: 48px;
    }

    .content-grid {
        gap: 32px;
    }

    .form-wrapper {
        padding: 24px;
    }

    .submit-btn{
width: 100%;
    }
}

@media (max-width: 500px) {


    .contact-info-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

}


/* =====================================
   CONTACT SECTION — FULL DARK MODE
===================================== */

body.dark-mode .contact-section {
    background-color: var(--body-bg);
}

/* Card / Form container */
body.dark-mode .contact-section .form-wrapper {
    background-color: var(--card-bg);
    border-color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Labels */
body.dark-mode .contact-section label {
    color: var(--text-secondary-invert);
}

/* Inputs & textarea */
body.dark-mode .contact-section input,
body.dark-mode .contact-section textarea {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary-invert);
}

/* Placeholders */
body.dark-mode .contact-section input::placeholder,
body.dark-mode .contact-section textarea::placeholder {
    color: var(--gray-500);
}

/* Focus state */
body.dark-mode .contact-section input:focus,
body.dark-mode .contact-section textarea:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--text-primary) 25%,
        transparent
    );
}

/* Submit button */
body.dark-mode .contact-section .submit-btn {
    background-color: var(--text-primary);
    color: var(--text-primary-invert);
}

/* Contact info text */
body.dark-mode .contact-section h1,
body.dark-mode .contact-section h2 {
    color: var(--text-primary);
}

body.dark-mode .contact-section h3,
body.dark-mode .contact-section p {
    color: var(--text-secondary-invert);
}

/* Divider line */
body.dark-mode .contact-section .tapered-line {
    background: var(--gradient-secondary);
}

/* Theme toggle button */
body.dark-mode .contact-section .theme-toggle {
    border-color: var(--text-secondary);
}

body.dark-mode .contact-section .theme-toggle svg {
    stroke: var(--text-secondary-invert);
}


/* =====================================
   CONTACT INPUT TEXT COLOR — FIX
===================================== */

body.dark-mode .contact-section 
.form-container 
.form-wrapper 
input,
body.dark-mode .contact-section 
.form-container 
.form-wrapper 
textarea {
    color: var(--text-secondary-invert) !important;
}
