/* Layout overrides to remove inner window effect while keeping the design */
html,
body {
    height: 100%;
    min-height: 100%;
    overflow: auto;
}

body {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body header,
body footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

body footer {
    margin-top: auto;
}

body .main-container {
    margin: 0;
    height: auto;
    min-height: 0;
    flex: 1 0 auto;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

body .wrapper,
body .wrapper .inner-wrapper {
    height: auto;
    overflow: visible;
}

/* Home page vertical centering when content is short */
.home-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 220px);
    background-position: center center !important;
}

.home-page .min-style {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 60px 0;
}

.home-page .content-wrapper {
    margin: 0 auto;
}

/* Home page: remove centered window wrapper */
.home-page .min-style .content-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-page {
        min-height: auto;
        align-items: flex-start;
    }

    .home-page .min-style .content-wrapper {
        padding: 20px;
    }

    .home-page .personal-img {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }

    .home-page .col.three-fourth {
        width: 100% !important;
    }
}

body header,
body footer {
    padding: 0 60px;
}

@media (max-width: 1024px) {
    body header,
    body footer {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    body header,
    body footer {
        padding: 0 20px;
    }
}

/* Contact page professional layout */
.contact-page-pro {
    max-width: 980px;
    margin: 0 auto;
}

.contact-page-pro .contact-heading {
    margin-bottom: 30px;
}

.contact-page-pro .contact-heading .page-header {
    margin-bottom: 12px;
}

.contact-page-pro .contact-heading p {
    margin: 0;
    color: #cbcbcb;
    font-size: 14px;
    letter-spacing: 0.8px;
    line-height: 1.8;
}

.contact-meta-grid {
    margin-bottom: 24px;
}

.contact-meta-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 8, 8, 0.35);
    padding: 18px 20px;
    min-height: 110px;
}

.contact-meta-card .label {
    margin-bottom: 10px;
    color: #9f9f9f;
    letter-spacing: 2px;
    font-size: 11px;
}

.contact-meta-card .info,
.contact-meta-card .text,
.contact-meta-card a {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.7;
}

.contact-form-wrap {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.45);
    padding: 24px;
}

.contact-1.contact-form-wrap form input[type=text],
.contact-1.contact-form-wrap form textarea {
    border-color: rgba(255, 255, 255, 0.24);
    color: #e7e7e7;
}

.contact-1.contact-form-wrap form input[type=submit] {
    font-size: 11px;
    display: inline-block;
    text-align: center;
    padding: 13px 22px;
    letter-spacing: 2.5px;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    color: #0b0b0b;
    cursor: pointer;
    font-family: effra, arial;
    text-transform: uppercase;
}

.contact-1.contact-form-wrap form input[type=submit]:hover {
    background-color: transparent;
    color: #ffffff;
}

@media (max-width: 768px) {
    .contact-form-wrap {
        padding: 16px;
    }

    .contact-meta-card {
        min-height: auto;
    }
}

/* Contact page no-overlap hard overrides */
.contact-page .min-style {
    height: auto;
    min-height: auto;
    padding: 40px 0;
}

.contact-page.main-container {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.contact-page .min-style .content-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
    overflow: visible;
}

.contact-page .contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.contact-page .contact-meta-item {
    min-width: 0;
}

.contact-page .contact-form-wrap {
    display: block;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 8, 8, 0.62);
    backdrop-filter: blur(2px);
}

.contact-page .contact-form-wrap form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-page .contact-form-wrap form input[type=text],
.contact-page .contact-form-wrap form textarea,
.contact-page .contact-form-wrap form input[type=submit] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-page .contact-form-wrap form input[type=text],
.contact-page .contact-form-wrap form textarea {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.4);
    color: #f3f3f3;
    letter-spacing: 0.7px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-page .contact-form-wrap form input[type=text] {
    height: 52px;
    padding: 0 16px;
}

.contact-page .contact-form-wrap form input[name="message_subject"],
.contact-page .contact-form-wrap form textarea,
.contact-page .contact-form-wrap form input[type=submit] {
    grid-column: 1 / -1;
}

.contact-page .contact-form-wrap form textarea {
    resize: vertical;
    min-height: 190px;
    padding: 16px;
    line-height: 1.7;
}

.contact-page .contact-form-wrap form input::placeholder,
.contact-page .contact-form-wrap form textarea::placeholder {
    color: #9f9f9f;
    letter-spacing: 1.1px;
}

.contact-page .contact-form-wrap form input[type=text]:focus,
.contact-page .contact-form-wrap form textarea:focus {
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.58);
}

.contact-page .contact-form-wrap form input[type=submit] {
    width: auto;
    justify-self: start;
    min-width: 210px;
    height: 50px;
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 2.2px;
    border: 1px solid #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #0b0b0b;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-page .contact-form-wrap form input[type=submit]:hover {
    transform: translateY(-1px);
    background: transparent;
    color: #ffffff;
}

@media (max-width: 992px) {
    .contact-page .contact-meta-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .contact-form-wrap form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page .min-style {
        padding: 24px 0;
    }

    .contact-page .min-style .content-wrapper {
        width: calc(100% - 20px);
        padding: 16px;
    }

}
