/* ==========================================================================
   File: style.css
   DOYDL TECHNOLOGIES: MAIN HOMEPAGE STYLESHEET
   ========================================================================== */
/*
    Description:
    Main stylesheet for the Doydl Technologies homepage.

    This file defines the visual design, layout, and responsive behavior 
    for the primary landing page. It includes styling for:

        1. General Styles
        2. Home / Initial Content
        3. Services Styles
        4. Contact Section
        5. About Section
        6. API Section
        7. Modal
        8. Nav Link Fonts
        9. Footer Styles

    --------------------------------------------------------------------------
    DEPENDENCIES:
      - index.html
      - Fonts: Roboto (Google Fonts)
      - Icons: Font Awesome, ET Line Icon
    --------------------------------------------------------------------------
*/
/* ========================================================================== */


/* ==========================================================================
   Section 1: General Styles
   ========================================================================== */
/* ------ Core document styling ------ */
html {
    min-height: 100%;
    background-color: #000;
    color-scheme: dark;
    overscroll-behavior-y: none;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
}
/* ------ Utility spacing ------ */
.margin-t-50 {
    margin-top: 50px;
}
/* ------ Custom button styling ------ */
.btn-custom {
    background-color: #000;
    color: #fff;
    border-radius: 3px;
}
.btn-custom:hover,
.btn-custom:active,
.btn-custom:focus {
    background-color: #3A3939;
    color: #fff;
    outline: none;
}
/* ------ Parallax background setup ------ */
.parallax {
    width: 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
/* ------ Preloader full-screen overlay ------ */
.animationload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000; /* Change color of landing page ------ */
    z-index: 999999;
}
/* ------ Preloader graphic ------ */
.loader {
    width: 544px;
    height: 556px;
    font-size: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    background-image: url(../images/loader.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Ensures the full GIF fits inside the box */
    transform: translate(-50%, -50%);
}
/* ------ Ensure full-height layout and remove default spacing ------ */
html, body {
    margin: 0;
    padding: 0;
    background-color: #000;           /* Prevents white gaps if background image fails or scrolls */
    overscroll-behavior-y: none;      /* Prevents white iOS rubber-band gaps */
}

/* ==========================================================================
   Section 2: Home / Initial Content
   ========================================================================== */   
/* ------ Menu styling ------ */   
.hero-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px; /* Adjust for more/less space */
}
.hero-links a {
    position: relative;
    font-family: 'IBM Plex Mono', monospace; 
    /* font-family: 'IBM Plex Mono', monospace; */ 
    /* font-weight: bold; */ 
    font-weight: 500;    
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
.hero-links a:not(:last-child)::after {
    content: "|";
    color: #bbb;
    opacity: 0.6;
    margin-left: 16px;   /* space after the link */
    margin-right: -24px; /* pulls the divider closer to the next link */
    position: absolute;
    right: -10x;       /* fine-tune for perfect centering */
    top: 0;
    font-weight: normal;
    pointer-events: none;
}   
/* ------ Logo styling ------ */
.logo {
    padding-bottom: 5%;
}
.logo p {
    color: #ffffff;
    padding-top: 20px;
    font-style: italic;
}
/* ------ Fullscreen background header with parallax overlay and image ------ */
#home {
    height: 100vh;
    height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
}
.large-header {
    height: 100%;
    min-height: inherit;
    background-image: url("../images/overlay.png"), url("../images/img-1.jpg");  /* overlay.png for img-1.jpg */
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-attachment: fixed, fixed;
}
#home,
.large-header {
    background-color: #000; /* Fallback to prevent white flash on scroll */
}
/* ------ Centered home content container ------ */
.home-main {
    position: absolute;
    margin: 0;
    padding: 0;
    text-align: center;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    /* transform: translate3d(-50%, -50%, 0); */
    transform: translate3d(-50%, -80%, 0);  /* adjust height of logo on main */   
}
/* ------ Initial content container ------ */
#initial_content {
    display: block;
    margin: 0 auto;
    overflow: hidden;
}
#canvas-main {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    position: absolute;
    top: 0;
    left: 0;
}
/* ------ Visual dash/line element ------ */
.dash {
    padding-bottom: 10px;
    position: relative;
    opacity: 1;
}
/* ------ Dash section title ------ */
.dash_title {
    font-size: 16px;
    width: 100%;
    color: #bbbbbb;
    display: block;
    clear: both;
}
/* ------ Large digit display ------ */
.digit {
    color: #f9f9f9;
    font-size: 60px;
    font-weight: 300;
    display: inline-block;
    overflow: hidden;
    text-align: center;
    height: 110px;
    line-height: 110px;
    position: relative;
    vertical-align: middle;
}
/* ------ Responsive adjustments ------ */
@media (max-height: 360px) {
    .digit {
        font-size: 30px;
        height: 50px;
        line-height: 50px;
    }
}
@media (max-width: 560px) {
    #initial_content {
        min-width: 300px;
    }
    .digit {
        font-size: 30px;
        height: 60px;
        line-height: 60px;
    }
}
@media (min-width: 560px) and (max-width: 1024px) {
    .digit {
        font-size: 40px;
        height: 80px;
        line-height: 80px;
    }
}

/* ==========================================================================
   Section 3: Services Styles
   ========================================================================== */
/* ------ Container styling ------ */
.services {
    padding: 120px 0 100px 0;
}
.services h4 {
    color: #fff;
}
.services-box h4 {
    padding-top: 30px;
    text-transform: uppercase;
}
.services-box p {
    color: #bbbbbb;
    padding-top: 10px;
    margin-bottom: 0;
}
/* ------ Open overlay styles ------ */
.open-overlay {
    font-size: 28px;
    line-height: 60px;
    width: 60px;
    height: 60px;
    margin-top: -60px;
    margin-left: -30px;
}
div.open-overlay {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    border: solid 3px #fff;
    border-radius: 3px;
    transform: rotate(45deg);
    transition: all .6s ease 0s;
}
.open-overlay i {
    font-size: 32px;
    line-height: 70px;
    margin: 0 auto;
    color: inherit;
    background: rgba(255,255,255,0);
    transform: rotate(-45deg);
    transition: all .6s ease 0s;
}
/* ------ Hover states ------ */
.services-box:hover .open-overlay {
    transform: rotate(0deg);
    background: rgba(255,255,255,1);
}
.services-box:hover .open-overlay i {
    transform: rotate(0deg);
    color: #444;
    font-weight: bold;
}
/* Utility class for adding vertical spacing above elements (60px top margin).
   Commonly used to create separation between stacked content rows, such as centering a single service below a group. */
.mt-60 {
    margin-top: 60px;
}
/* ------ Responsive ------ */
@media (max-width: 1000px) {
    .services-box {
        padding-top: 50px;
    }
}

/* ==========================================================================
   Section 4: Contact Section
   ========================================================================== */
/* ------ Contact section layout ------ */
.contact {
    text-align: center;
    padding: 100px 0;
}
.contact h4 {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 10px;
    color: #000;
    text-transform: uppercase;
}
.contact p {
    color: #534F4F;
    font-size: 16px;
    margin-bottom: 0;
    padding: 10px 0 30px;
}
/* ------ Contact input fields ------ */
.contact input,
.contact textarea {
    width: 100%;
    font-size: 15px;
    color: #000;
    caret-color: black;
    background-color: #fff; /* Prevent transparent background issues */    
}
.contact input {
    height: 43px;
    margin-bottom: 20px;
    padding-left: 15px;
    line-height: 20px;
}
.contact textarea {
    height: 170px;
    margin-bottom: 15px;
    padding: 15px 55px 15px 15px;
    line-height: 28px;
}
textarea {
    resize: none;
}
/* ------ Input/textarea focus state ------ */
.contact input:focus,
.contact textarea:focus,
.contact input:active,
.contact textarea:active {
    border: 1px solid #000;
    outline: none;
}
/* ------ Validation input highlight ------ */
.contact .validation {
    border: 1px solid #ff0000;
}
/* ------ Confirmation message display ------ */
.confirm-message {
    margin-top: 20px;
    font-size: 18px;
    color: #000;
    padding: 10px 0;
    text-transform: uppercase;
    display: none;
    text-align: center;
}

/* ------ Contact form operational states ------ */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
#form-message {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}
#form-message.contact-success {
    color: #0b6b32;
}
#form-message.contact-error {
    color: #9e1c1c;
}
.btn.is-submitting,
.btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

/* ------ Decorative separator line ------ */
.line-separate {
    display: block;
    margin: 0 auto 10px !important;
    width: 120px;
    height: 15px;
    position: relative;
}
.line-separate:before,
.line-separate:after {
    content: '';
    display: block;
    width: 49px;
    height: 2px;
    background: #000;
    position: relative;
}
.line-separate:before {
    top: 7px;
    float: left;
}
.line-separate:after {
    top: -10px;
    float: right;
}
.line-separate span {
    display: block;
    position: relative;
    width: 17px;
    height: 17px;
    margin: 0 auto;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}
.line-white span {
    box-shadow: inset 0 0 0 2px #000;
}

/* ==========================================================================
   Section 5: About Section
   ========================================================================== */
/* ------ Container styling ------ */
.about {
    padding: 120px 0 100px 0;
}
.about-box {
    text-align: center;
    margin: 0 auto;
    max-width: 700px; /* Optional, to constrain paragraph width */
}
.about h4 {
    color: #fff;
}
.about-box h4 {
    padding-top: 30px;
    text-transform: uppercase;
}
.about-box p {
    color: #bbbbbb;
    padding-top: 10px;
    margin-bottom: 0;
}
/* ------ Open overlay styles ------ */
.open-overlay {
    font-size: 28px;
    line-height: 60px;
    width: 60px;
    height: 60px;
    margin-top: -60px;
    margin-left: -30px;
}
div.open-overlay {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    border: solid 3px #fff;
    border-radius: 3px;
    transform: rotate(45deg);
    transition: all .6s ease 0s;
}
.open-overlay i {
    font-size: 32px;
    line-height: 70px;
    margin: 0 auto;
    color: inherit;
    background: rgba(255,255,255,0);
    transform: rotate(-45deg);
    transition: all .6s ease 0s;
}
/* ------ Hover states ------ */
.about-box:hover .open-overlay {
    transform: rotate(0deg);
    background: rgba(255,255,255,1);
}
.about-box:hover .open-overlay i {
    transform: rotate(0deg);
    color: #444;
    font-weight: bold;
}
/* ------ Responsive ------ */
@media (max-width: 1000px) {
    .about-box {
        padding-top: 50px;
    }
}

/* ==========================================================================
   Section 6: Companies Section
   ========================================================================== */
/* ------ Companies section layout ------ */
.companies {
    text-align: center;
    padding: 100px 0;
}
.companies h4 {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}
.companies p {
    color: #9e9b9b;
    font-size: 16px;
    margin-bottom: 0;
    padding: 10px 0 30px;
}
.company-links {
    display: flex;
    justify-content: center;
    margin-top: -8px;
}
.company-link {
    color: #5fb8e8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.company-link:hover,
.company-link:focus {
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}
textarea {
    resize: none;
}
/* ------ Confirmation message display ------ */
.confirm-message {
    margin-top: 20px;
    font-size: 18px;
    color: #000;
    padding: 10px 0;
    text-transform: uppercase;
    display: none;
    text-align: center;
}
/* ------ Decorative separator line ------ */
.line-separate {
    display: block;
    margin: 0 auto 10px !important;
    width: 120px;
    height: 15px;
    position: relative;
}
.line-separate:before,
.line-separate:after {
    content: '';
    display: block;
    width: 49px;
    height: 2px;
    background: #fff;
    position: relative;
}
.line-separate:before {
    top: 7px;
    float: left;
}
.line-separate:after {
    top: -10px;
    float: right;
}
.line-separate span {
    display: block;
    position: relative;
    width: 17px;
    height: 17px;
    margin: 0 auto;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}
.line-white span {
    box-shadow: inset 0 0 0 2px #fff;
}

/* ==========================================================================
   Section 7: Modal
   ========================================================================== */
/* ------ MODAL BACKDROP ------ */
.custom-modal {
    display: block; /* Required for animation – we use opacity to hide it */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent clicks when hidden */
}
.custom-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allow interaction when shown */
}
/* ------ MODAL CONTENT ------ */
.modal-content {
    background-color: #1a1a1a;
    color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 6px;

    width: auto;
    max-width: 95vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;

    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.custom-modal.active .modal-content {
    transform: scale(1);
}
/* Specific centering only for the About modal */
#aboutModal .about-box {
    margin: 0 auto;
    text-align: center;
}
#aboutModal .row {
    display: flex;
    justify-content: center;
}
#aboutModal .col-lg-4 {
    display: flex;
    justify-content: center;
}
#aboutModal .about-box {
    text-align: center;
    max-width: 700px;
}
#contactModal input,
#contactModal textarea {
    caret-color: black;
    color: #000;
    background-color: #fff; /* ensure caret is visible */
}
#judicialModal .footer-judicial-box {
    margin: 0 auto;
    text-align: center;
}
#judicialModal .row {
    display: flex;
    justify-content: center;
}
#disclaimerModal .footer-disclaimer-box {
    margin: 0 auto;
    text-align: center;
}
#disclaimerModal .row {
    display: flex;
    justify-content: center;
}
/* ------ CLOSE BUTTON ------ */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}
.close-btn:hover {
    color: #ccc;
}
   
/* ==========================================================================
   Section 8: Navigation Link Fonts
   ========================================================================== */
.hero-links {
    margin-top: 30px;
    text-align: center;
    transform: translateX(28px); /* positive = right, negative = left */
}
.hero-links a {
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 25px;
    /*  font-weight: 500;        /* or 600/700 for bold */  
    font-weight: bold;
    margin: 0 10px;
    text-decoration: none;
    letter-spacing: 0px;
    /* text-transform: uppercase; */
    text-transform: none;    
    transition: color 0.3s ease;
}
.hero-links a:hover {
    color: #cccccc;
}

/* ==========================================================================
   Section 9: Footer Styles
   ========================================================================== */
/* ------ Social button list item spacing ------ */
.social li {
    margin: 0 10px !important;
}
/* ------ Social button base styles ------ */
li.social-btn {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    border: solid 1px #000;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transition: all 0.6s ease 0s;
    -moz-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
}
.social-btn {
    font-size: 16px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    margin-top: -60px;
    margin-left: -30px;
}
/* ------ Social button anchor styles ------ */
.social-btn a {
    padding: 10px;
    font-size: 15px;
    line-height: 17px;
    z-index: 2;
    margin: 0 auto;
    cursor: pointer;
    background: rgba(255, 255, 255, 0);
    color: inherit;
    -webkit-transition: all 0.6s ease 0s;
    -moz-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
}
/* ------ Icon rotation and adjustment ------ */
.social-btn a i {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: -0.3em;
    margin-top: -0.1em;
}
.social-btn a i:last-of-type {
    margin-left: -0.5em;
    margin-top: -0.3em;
}
/* ------ Social icon color themes ------ */
#linkedin {
    border: 2px solid #0077b5;
    color: #0077b5;
}
#linkedin a {
    color: #0077b5;
}
#linkedin:hover {
    background-color: #0077b5;
}
#linkedin:hover a {
    color: #fff;
}
#github {
    border: 2px solid #f5f5f5;
    color: #f5f5f5;
}
#github a {
    color: #f5f5f5;
}
#github:hover {
    background-color: #f5f5f5;
}
#github:hover a {
    color: #111;
}
#twitter {
    border: 2px solid #1da1f2;
    color: #1da1f2;
}
#twitter a {
    color: #1da1f2;
}
#twitter:hover {
    background-color: #1da1f2;
}
#twitter:hover a {
    color: #fff;
}
#youtube {
    border: 2px solid #ff0000;
    color: #ff0000;
}
#youtube a {
    color: #ff0000;
}
#youtube:hover {
    background-color: #ff0000;
}
#youtube:hover a {
    color: #fff;
}
#instagram {
    border: 2px solid #e4405f;
    color: #e4405f;
}
#instagram a {
    color: #e4405f;
}
#instagram:hover {
    background-color: #e4405f;
}
#instagram:hover a {
    color: #fff;
}
#facebook {
    border: 2px solid #3b5998;
    color: #3b5998;
}
#facebook a {
    color: #3b5998;
}
#facebook:hover {
    background-color: #3b5998;
}
#facebook:hover a {
    color: #fff;
}
#pinterest {
    border: 2px solid #cb2027;
    color: #cb2027;
}
#pinterest a {
    color: #cb2027;
}
#pinterest:hover {
    background-color: #cb2027;
}
#pinterest:hover a {
    color: #fff;
}
.footer {
    /* padding-bottom: 100px;  /* <-- no longer needed, will cause too much space */
    position: absolute;       /* Or use 'fixed' if you want it global */
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 0;          /* Replace large bottom padding with small consistent padding */
    background: none;         /* Ensures full transparency */
    color: #fff;              /* Ensure text is readable */
}

/* ==========================================================================
   Section 9.1: Footer Terms Styles
   ========================================================================== */
/* ------ Container styling ------ */
.footer-judicial-box {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}
.footer-judicial-box ul {
    margin: 20px auto;
    padding-left: 24px;
    color: #bbbbbb;
    text-align: center;
    max-width: 650px;
    /*list-style-position: inside;   */ 
}
.footer-judicial-box h4 {
    padding-top: 30px;
    text-transform: uppercase;
}
.footer-judicial-box p {
    color: #bbbbbb;
    padding-top: 10px;
    margin-bottom: 0;
}
.footer-disclaimer-box {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}
.footer-disclaimer-box ul {
    margin: 20px auto;
    padding-left: 24px;
    color: #bbbbbb;
    text-align: center;
    max-width: 650px;
    /*list-style-position: inside;   */ 
}
.footer-disclaimer-box h4 {
    padding-top: 30px;
    text-transform: uppercase;
}
.footer-disclaimer-box p {
    color: #bbbbbb;
    padding-top: 10px;
    margin-bottom: 0;
}
/* ------ Open overlay styles ------ */
.open-overlay {
    font-size: 28px;
    line-height: 60px;
    width: 60px;
    height: 60px;
    margin-top: -60px;
    margin-left: -30px;
}
div.open-overlay {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    border: solid 3px #fff;
    border-radius: 3px;
    transform: rotate(45deg);
    transition: all .6s ease 0s;
}
.open-overlay i {
    font-size: 32px;
    line-height: 70px;
    margin: 0 auto;
    color: inherit;
    background: rgba(255,255,255,0);
    transform: rotate(-45deg);
    transition: all .6s ease 0s;
}
/* ------ Hover states ------ */
.footer-judicial-box:hover .open-overlay {
    transform: rotate(0deg);
    background: rgba(255,255,255,1);
}
.footer-judicial-box:hover .open-overlay i {
    transform: rotate(0deg);
    color: #444;
    font-weight: bold;
}
.footer-disclaimer-box:hover .open-overlay {
    transform: rotate(0deg);
    background: rgba(255,255,255,1);
}
.footer-disclaimer-box:hover .open-overlay i {
    transform: rotate(0deg);
    color: #444;
    font-weight: bold;
}
/* ------ Responsive ------ */
@media (max-width: 1000px) {
    .footer-judicial-box {
        padding-top: 50px;
    }
}
@media (max-width: 1000px) {
    .footer-disclaimer-box {
        padding-top: 50px;
    }
}
.copyright{
    padding-top: 10px;
    margin-bottom: 0;
}
.footer-links {
    display: flex;
    gap: 24px; /* space between Legal & Disclaimer */
    justify-content: center; /* centers the links horizontally */
    margin-top: 16px; /* optional: space above, adjust as you like */
}
.footer-judicial,
.footer-disclaimer {
    /* optional, but helps with alignment */
    display: flex;
}

/* ==========================================================================
   Section 10: Mobile Responsiveness
   ========================================================================== */
/* ------ Apply styles for devices with a viewport width of 768px or less ------ */
@media (max-width: 768px) {
    /* ------ Adjust vertical centering of the home content ------ */
    .home-main {
        transform: translate3d(-50%, -50%, 0); /* Re-center the content more naturally on smaller screens */
        padding: 20px; /* Add padding to prevent content from touching screen edges */
    }
    /* ------ Scale down logo image for smaller screens ------ */
    .logo img {
        width: 80%;       /* Reduce width proportionally */
        height: auto;     /* Maintain aspect ratio */
    }
    /* ------ Reset nav container transform and adjust spacing ------ */
    .hero-links {
        transform: none;     /* Remove manual horizontal shift */
        margin-top: 20px;    /* Add vertical spacing above the nav links */
    }
    /* ------ Stack nav links vertically and reduce font size slightly ------ */
    .hero-links a {
        display: block;       /* Stack links vertically */
        margin: 10px 0;       /* Add spacing between links */
        font-size: 18px;      /* Slightly smaller text for mobile */
    }
    /* ------ Use scroll instead of fixed for background images on mobile (better performance & support) ------ */
    .large-header {
        background-attachment: scroll; /* Prevent jankiness on mobile browsers */
        background-size: cover;        /* Ensure image scales properly to fit */
    }
    .footer {
        bottom: env(safe-area-inset-bottom);
    }
    .loader {
        width: 200px;   /* Scale down the width */
        height: 200px;  /* Maintain proportional height */
        background-size: contain; /* Ensure the image doesn't get cropped */
    }    
}
/*  Responsive fixes for most mobile screens (max-width: 414px); Covers: iPhone 6/7/8 Plus, most Android phones, etc. */
@media (max-width: 414px) {
    /* Make containers, modals, and main sections use almost full viewport width */
    .modal-content,
    .container,
    .home-main,
    #initial_content {
        max-width: 98vw;           /* Prevents overflow, allows a little margin */
        width: 100%;               /* Ensures it stretches fully */
        min-width: 0 !important;   /* Overrides any set minimums */
        padding: 10px !important;  /* Adds inner padding so content isn't flush */
        box-sizing: border-box;    /* Includes padding in width calculations */
    }
    /* Make nav links smaller and reduce vertical spacing for tight screens */
    .hero-links a {
        font-size: 15px !important;
        margin: 6px 0 !important;
    }
    /* Make contact form fields smaller */
    .contact input,
    .contact textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }
    /* Shrink section headings for small screens */
    h4, .companies h4, .contact h4 {
        font-size: 18px !important;
    }
    .company-link {
        font-size: 14px !important;
    }
    /* Tighter padding inside modal dialogs */
    .modal-content {
        padding: 12px !important;
    }
}

/* Extra-tight responsive fixes for ultra-narrow screens (320px and below); Covers: iPhone 5/SE, iPhone 4, very old Androids/BlackBerry */
@media (max-width: 320px) {
    /* Even tighter max width and less padding */
    .modal-content,
    .container,
    .home-main,
    #initial_content {
        max-width: 98vw;
        width: 100%;
        min-width: 0 !important;
        padding: 4px !important;
    }
    /* Smallest possible readable nav link text and less spacing */
    .hero-links a {
        font-size: 13px !important;
        margin: 4px 0 !important;
    }
    /* Tiny contact fields for forms, but still usable */
    .contact input,
    .contact textarea {
        font-size: 12px !important;
        padding: 6px !important;
    }
    /* Shrink headings further */
    h4, .companies h4, .contact h4 {
        font-size: 15px !important;
    }
    .company-link {
        font-size: 12px !important;
    }
    /* Tightest modal dialog padding for the tiniest screens */
    .modal-content {
        padding: 6px !important;
    }
}

