/* 
    Global Design System for Nexus Vision
    - Colors: Black & Orange
    - Typography: Rajdhani (Headings), Open Sans (Body)
    - Utilities: Roomy sections, responsive basics
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --nexus-orange: #f37021;
    --nexus-black: #000000;
    --nexus-dark-grey: #1a1a1a;
    --nexus-light-grey: #f4f4f4;
    --nexus-white: #ffffff;
    --section-padding-y: 50px;
    --section-padding-y-mobile: 40px;
    --heading-margin-bottom: 24px;
    --element-margin-bottom: 20px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--nexus-black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.text-transform-none {
    text-transform: none !important;
}

.nexus-full-banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {

    .nexus-banner-container {
        height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
    }

    .nexus-full-banner {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

}

/* Roomy Sections */
section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-heading-primary,
.about-main-heading,
.section-heading-orange {
    margin-bottom: var(--heading-margin-bottom) !important;
}

@media (max-width: 768px) {
    section {
        padding-top: var(--section-padding-y-mobile);
        padding-bottom: var(--section-padding-y-mobile);
    }
}

/* Compact Section - Half Spacing */
.section-compact {
    padding-top: calc(var(--section-padding-y) / 2) !important;
    padding-bottom: calc(var(--section-padding-y) / 2) !important;
}

@media (max-width: 768px) {
    .section-compact {
        padding-top: calc(var(--section-padding-y-mobile) / 2) !important;
        padding-bottom: calc(var(--section-padding-y-mobile) / 2) !important;
    }
}

/* Section Headings - Symmetrical Spacing */
.section-title {
    margin-bottom: 60px !important;
    /* Balanced gap between title and content */
}

@media (max-width: 767px) {
    .section-title {
        margin-bottom: 40px !important;
    }
}

/* Color Utilities */
.bg-nexus-black {
    background-color: var(--nexus-black) !important;
    color: var(--nexus-white);
}

.bg-nexus-orange {
    background-color: var(--nexus-orange) !important;
    color: var(--nexus-white);
}

.text-nexus-orange {
    color: var(--nexus-orange) !important;
}

/* Buttons */
.btn-nexus {
    background-color: var(--nexus-orange);
    color: white;
    border-radius: 50px;
    /* pill shape */
    padding: 12px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-nexus:hover {
    background-color: var(--nexus-black);
    color: var(--nexus-orange);
}

.btn-nexus-outline {
    border: 2px solid var(--nexus-orange);
    color: var(--nexus-orange);
    border-radius: 50px;
    /* pill shape */
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nexus-outline:hover {
    background-color: var(--nexus-orange);
    color: white;
}

/* Paragraph Visibility */
p {
    font-weight: 600 !important;
    color: #111 !important;
}

/* Ensure white paragraphs on dark backgrounds stay white */
.bg-nexus-black p,
.hero-slide p,
#testimonials .testimonial-card p {
    color: #ffffff !important;
}

/* Placeholder boxes */
.image-placeholder {
    background-color: #cccccc;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    position: relative;
    width: 100%;
}

/* ============================================
   Nexus Inquiry Modal Styling
   ============================================ */
.nexus-inquiry-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
}

.nexus-inquiry-modal.active {
    display: flex;
}

.nexus-inquiry-modal-content {
    background-color: #ffffff;
    margin: 1.5% auto;
    padding: 30px 25px 25px;
    border: 3px solid var(--nexus-orange);
    width: 100%;
    max-width: 500px;
    /* Slighting narrower */
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: nexusFadeScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes nexusFadeScale {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nexus-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--nexus-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nexus-modal-close:hover {
    background-color: var(--nexus-orange);
    transform: rotate(90deg);
}

.modal-header-box {
    margin-bottom: 20px;
}

.modal-logo-wrapper {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: inline-block;
    margin-bottom: 12px;
}

.modal-header-logo {
    max-height: 65px;
    /* More compact logo */
    width: auto;
}

.modal-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    /* Slightly smaller tagline */
    color: var(--nexus-black);
    margin: 0;
    text-transform: none;
    line-height: 1.2;
}

/* Form Fields inside Modal */
.modal-inquiry-form .form-group {
    margin-bottom: 15px;
    /* Reduced vertical space */
}

.modal-inquiry-form .form-input {
    width: 100%;
    background-color: #f8f8f8;
    border: 2px solid #eeeeee;
    border-radius: 12px;
    /* Slightly smaller radius for compact look */
    padding: 10px 18px;
    /* Reduced internal padding */
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.modal-inquiry-form .form-input:focus {
    border-color: var(--nexus-orange);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

.modal-inquiry-form select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f37021' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

.modal-inquiry-form textarea.form-input {
    resize: none;
    min-height: 90px;
    /* Reduced height for textarea */
}

.btn-modal-submit {
    width: 100%;
    background: linear-gradient(180deg, #f5a623 0%, #e8720c 100%);
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 12px;
    /* More compact button */
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-modal-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .nexus-inquiry-modal {
        padding: 5px;
        /* Minimal padding for overlay */
        align-items: center;
    }

    .nexus-inquiry-modal-content {
        padding: 15px 12px 12px;
        /* Extremely compact padding */
        margin: auto !important;
        border-radius: 25px;
        /* Slightly smaller radius for mobile */
    }

    .modal-header-box {
        margin-bottom: 10px;
        /* Reduced header space */
    }

    .modal-logo-wrapper {
        margin-bottom: 5px;
        padding: 5px 15px;
        /* Slimmer logo box */
    }

    .modal-header-logo {
        max-height: 40px;
        /* Smaller logo */
    }

    .modal-tagline {
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .modal-inquiry-form .form-group {
        margin-bottom: 8px;
        /* Tight vertical space between fields */
    }

    .modal-inquiry-form .form-input {
        padding: 8px 12px;
        /* Slimmer inputs */
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .modal-inquiry-form textarea.form-input {
        min-height: 70px;
        /* Significantly shorter textarea */
    }

    .btn-modal-submit {
        padding: 9px 40px;
        font-size: 1.1rem;
        margin-top: 2px;
    }
}