/*----------------------------------------------
*
* [Default Stylesheet]
*
* Theme    : NEXGEN
* Version  : 1.0
* Author   : Codings
* Support  : codings.dev
* 
----------------------------------------------*/

/*----------------------------------------------

[ALL CONTENTS]

1. Root
2. Button
3. Effect

----------------------------------------------*/

/*----------------------------------------------
1. Root
----------------------------------------------*/

/* #region Root */

:root {
    --h1-font: 'Poppins', sans-serif;
    --h1-size: 4.5rem;
    --h1-weight: 900;
    
    --h2-font: 'Poppins', sans-serif;
    --h2-size: 3rem;
    --h2-weight: 700;
    
    --p-font: 'Montserrat', sans-serif;
    --p-size: 1rem;
    --p-weight: 400;

    --header-bg-color: #21333e;
    --nav-top-bg-color: #21333e;
    --nav-sub-bg-color: #21333e;
    --nav-holder-bg-color: #21333e;
    --nav-brand-height: 35px;
    --nav-item-color: #f9f9f9;
    --hero-bg-color: #111117;
    --footer-brand-height: 80px;

    --primary-color: #058283;
    --secondary-color: #00a6a6;
    
    --white-color: #ffffff;
    --black-color: #000007;
    --dark-grey-color: #111117;

    --primary-t-color: #21333e;
    --secondary-t-color: #f9f9f9; 
    --primary-p-color: #606d75;
    --secondary-p-color: #c0c3d0;
    --primary-b-color: #f9f9f9;
    --primary-l-color: rgba(0, 0, 0, .25);
    --secondary-l-color: rgba(255, 255, 255, 0.35);

    --valid-color: #007a4d;
    --invalid-color: #e34f4f;

    --primary-bg-color: #f9f9f9;
    --primary-bg-color-2: #f1f1f1;
    --primary-bg-color-3: rgba(5, 130, 131, 0.15);

    --secondary-bg-color: #111117;
    --secondary-bg-color-2: #080d10;
    --secondary-bg-color-3: #191919;

    --card-bg-color: #ffffff;

    --footer-bg-color: #111117;
}

/* #endregion Root */

/*----------------------------------------------
2. Button
----------------------------------------------*/

/* #region Button */

.primary-button, .primary-button:visited, .primary-button:active {
    position: relative;
    z-index: 2;
    padding: 10px 25px;
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 1px solid;
    border-color: var(--primary-color);
    color: var(--primary-b-color);
    font-weight: 500;
    -webkit-transition: all .4s ease-out 0s;
    -o-transition: all .4s ease-out 0s;
    -moz-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

.primary-button:hover, .primary-button:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.outline-button, .outline-button:visited, .outline-button:active {
    position: relative;
    z-index: 2;
    padding: 10px 25px;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    -webkit-transition: all .4s ease-out 0s;
    -o-transition: all .4s ease-out 0s;
    -moz-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

.odd .outline-button, .odd .outline-button:visited, .odd .outline-button:active {
    position: relative;
    z-index: 2;
    padding: 10px 25px;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid;
    border-color: var(--primary-color);
    color: var(--primary-b-color);
    font-weight: 500;
    -webkit-transition: all .4s ease-out 0s;
    -o-transition: all .4s ease-out 0s;
    -moz-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

.outline-button:hover, .outline-button:focus {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* #endregion Button */

/* #region Effect */

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 var(--secondary-color);
        background-color: var(--secondary-color);
    }
    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(204,169,44, 0);
        background-color: rgba(204,169,44, 0);
    }
    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0);
        background-color: rgba(204,169,44, 0);
    }
}
  
@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 var(--secondary-color);
        box-shadow: 0 0 0 0 var(--secondary-color);
        background-color: var(--secondary-color);
    }
    70% {
        -moz-box-shadow: 0 0 0 10px rgba(204,169,44, 0);
        box-shadow: 0 0 0 10px rgba(204,169,44, 0);
        background-color: rgba(204,169,44, 0);
    }
    100% {
        -moz-box-shadow: 0 0 0 0 rgba(204,169,44, 0);
        box-shadow: 0 0 0 0 rgba(204,169,44, 0);
        background-color: rgba(204,169,44, 0);
    }
}

/* #endregion Effect */

/*----------------------------------------------
4. FAQ Accordion
----------------------------------------------*/

/* #region FAQ Accordion */

section.faq-section {
    padding: 100px 0;
}

section.faq-section .xvt-accordion-item {
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: var(--card-bg-color) !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
    -webkit-transition: all .4s ease-out 0s;
    -o-transition: all .4s ease-out 0s;
    -moz-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

section.faq-section .xvt-accordion-item:hover {
    box-shadow: 0 6px 20px rgba(5, 130, 131, 0.15) !important;
    transform: translateY(-1px);
}

section.faq-section .xvt-accordion-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px !important;
    margin: 0 !important;
    cursor: pointer;
    background-color: var(--card-bg-color);
    -webkit-transition: all .3s ease-out 0s;
    -o-transition: all .3s ease-out 0s;
    -moz-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
}

section.faq-section .xvt-accordion-header:not(.collapsed) {
    background-color: var(--primary-color) !important;
}

section.faq-section .xvt-accordion-header:hover {
    background-color: rgba(5, 130, 131, 0.06);
}

section.faq-section .xvt-accordion-header:not(.collapsed):hover {
    background-color: var(--secondary-color) !important;
}

section.faq-section .xvt-accordion-title {
    font-family: var(--p-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-t-color);
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
}

section.faq-section .xvt-accordion-header:not(.collapsed) .xvt-accordion-title {
    color: var(--white-color) !important;
}

section.faq-section .xvt-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-left: 15px;
    border-radius: 50%;
    background-color: var(--primary-bg-color-3);
    color: var(--primary-color);
    font-size: 0.7rem;
    -webkit-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
}

section.faq-section .xvt-accordion-header:not(.collapsed) .xvt-accordion-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

section.faq-section .xvt-accordion-body {
    padding: 5px 24px 22px !important;
    background-color: var(--card-bg-color);
}

section.faq-section .xvt-accordion-body p {
    margin: 0 !important;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--primary-p-color);
}

/* #endregion FAQ Accordion */

/*----------------------------------------------
5. Tech Stack Grid
----------------------------------------------*/

/* #region Tech Stack */

section.tech-stack-section {
    padding: 100px 0;
}

section.tech-stack-section .xvt-tech-item {
    padding: 15px !important;
}

section.tech-stack-section .xvt-tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 15px 20px !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-transition: all .4s ease-out 0s;
    -o-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

section.tech-stack-section .xvt-tech-card:hover {
    background: rgba(5, 130, 131, 0.12) !important;
    border-color: rgba(5, 130, 131, 0.3);
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(5, 130, 131, 0.2) !important;
}

section.tech-stack-section .xvt-tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

section.tech-stack-section .xvt-tech-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: grayscale(60%) brightness(1.3);
    -webkit-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

section.tech-stack-section .xvt-tech-card:hover .xvt-tech-icon img {
    filter: grayscale(0%) brightness(1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

section.tech-stack-section .xvt-tech-label {
    font-family: var(--p-font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-p-color);
    margin: 0 !important;
    -webkit-transition: all .4s ease-out 0s;
    transition: all .4s ease-out 0s;
}

section.tech-stack-section .xvt-tech-card:hover .xvt-tech-label {
    color: var(--white-color);
}

/* #endregion Tech Stack */

/*----------------------------------------------
6. CTA Section
----------------------------------------------*/

/* #region CTA Section */

section.cta-section {
    padding: 80px 0;
}

section.cta-section h2 {
    margin-bottom: 15px;
}

section.cta-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-p-color);
    max-width: 550px;
    margin-bottom: 0;
}

/* #endregion CTA Section */

/*----------------------------------------------
7. Quote Modal & Form
----------------------------------------------*/

/* #region Quote Modal */

#quoteModal .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    border: none !important;
}

#quoteModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.xvt-form-label {
    font-family: var(--p-font);
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--primary-t-color) !important;
    margin-bottom: 6px !important;
    display: block;
}

.xvt-form-input {
    border-radius: 6px !important;
    padding: 11px 16px !important;
    border: 1px solid #dde2e6 !important;
    font-size: 0.95rem !important;
    background-color: #f8fafb !important;
    color: var(--primary-t-color) !important;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.xvt-form-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(5, 130, 131, 0.12) !important;
    background-color: #fff !important;
}

.xvt-form-input::placeholder {
    color: #adb5bd !important;
    font-size: 0.9rem;
}

#quoteSubmitBtn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Success state animation */
#quoteSuccessMsg .fa-check {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* CTA button text fix */
section.cta-section .primary-button {
    color: #fff !important;
}

/* #endregion Quote Modal */

/*----------------------------------------------
8. Mobile Responsive Fixes
----------------------------------------------*/

/* ── Tablet (≤ 992px) ── */
@media (max-width: 992px) {
    #slider .title { font-size: 2.2rem !important; line-height: 1.25 !important; }
    #slider .description { font-size: 0.95rem !important; }
    section.cta-section p { margin: 0 auto 20px !important; }

    /* Services & Projects grid – stack cards */
    section.offers .row.intro {
        flex-direction: column;
        text-align: center !important;
    }
    section.offers .row.intro .col-md-3,
    section.offers .row.intro .col-md-9 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
    }
    section.offers .row.intro .col-md-3 {
        margin-top: 15px;
    }
    section.offers .row.intro .col-md-3 .btn {
        margin: 0 auto !important;
    }

    /* Process steps – wrap nicely */
    section#process .row.items .col-lg-2 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }

    /* Service/Project detail sidebars */
    section#single .col-lg-8,
    section#single .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    section#single aside.sidebar {
        padding-left: 0 !important;
        margin-top: 40px;
    }

    /* About section image-right layout */
    section.highlights .col-lg-8,
    section.highlights .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    section.highlights .col-lg-4 {
        margin-top: 30px;
    }

    /* Contact form + sidebar */
    section.contact .col-md-8,
    section.contact .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    section.contact .col-md-4 {
        margin-top: 30px;
    }

    /* CTA section */
    section.cta-section .col-lg-7,
    section.cta-section .col-lg-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Footer columns */
    #footer .col-lg-3,
    #footer .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    #footer .footer-left {
        text-align: center;
        margin-bottom: 30px;
    }
    #footer .footer-left .navbar-nav { align-items: center; }
    #footer .footer-right .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* About results section */
    section#about-2 .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    section#about-2 .col-md-6:last-child {
        margin-top: 30px;
    }

    /* About "The Company" section */
    section#about-3 .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    section#about-3 .col-md-6.image {
        margin-top: 30px;
    }
    section#about-3 .col-md-6.image img {
        border-radius: 8px;
    }

    /* Tech stack – adjust grid */
    section.tech-stack-section .xvt-tech-item {
        padding: 10px !important;
    }

    /* FAQ section */
    section.faq-section {
        padding: 60px 0;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    :root { --h1-size: 2.2rem; --h2-size: 1.8rem; }

    /* Global section padding */
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    section.hero { padding: 0 !important; }

    /* Hero Slider */
    #slider .title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }
    #slider .description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    #slider .buttons .d-sm-inline-flex {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    #slider .buttons .btn {
        font-size: 0.85rem !important;
        padding: 9px 20px !important;
        margin-left: 0 !important;
    }
    #slider .left, #slider .center, #slider .right {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    /* Sidebar modal */
    #menu .modal-body { padding: 30px 20px !important; }
    #menu .items .nav-link {
        font-size: 1.05rem !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        display: block;
    }
    #menu .contacts .nav-link { font-size: 0.9rem !important; padding: 8px 0 !important; }

    /* Section headings */
    section h2 { font-size: 1.8rem !important; }
    section .pre-title { font-size: 0.85rem !important; }

    /* Process steps – 2 col on mobile */
    section#process .row.items .col-lg-2 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px;
    }

    /* Service cards */
    section.offers .item .card {
        padding: 25px 20px !important;
    }
    section.offers .item .card h4 {
        font-size: 1.1rem !important;
    }
    section.offers .item .card p {
        font-size: 0.9rem !important;
    }

    /* Contact form & info – full width stack */
    section.form.contact .col-md-8,
    section.form.contact .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    section.form.contact .col-md-4 {
        margin-top: 30px;
    }
    section.form.contact .col-md-4 .contacts {
        text-align: center;
    }
    section.form.contact .col-md-4 .contacts h4 {
        font-size: 1.2rem !important;
    }

    /* About pages – stack columns */
    section.highlights .row > [class*="col-md-6"],
    section.highlights .row > [class*="col-lg-8"],
    section.highlights .row > [class*="col-lg-4"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 15px !important;
    }
    section.highlights .quote {
        margin-top: 30px !important;
    }

    /* About results radial items */
    section#about-2 .row.items .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* CTA section - stack and center */
    section.cta-section .row {
        flex-direction: column;
        text-align: center !important;
    }
    section.cta-section .col-lg-7,
    section.cta-section .col-lg-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    section.cta-section .col-lg-5 {
        margin-top: 20px;
    }
    section.cta-section .primary-button,
    section.cta-section .outline-button {
        display: block !important;
        width: 100%;
        text-align: center;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    /* Footer - full width columns */
    #footer .col-lg-3,
    #footer .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    #footer .footer-left {
        text-align: center;
        margin-bottom: 30px;
    }
    #footer .footer-left .navbar-nav { align-items: center; }
    #footer .footer-right .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }
    #footer .footer-right .card {
        text-align: center;
    }
    #footer .footer-right .card h4 {
        font-size: 1.1rem !important;
    }

    /* Copyright section */
    #copyright .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Service/Project detail – sidebar below content */
    section#single .col-lg-8,
    section#single .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    section#single aside.sidebar {
        padding-left: 0 !important;
        margin-top: 30px;
    }
    section#single .list-group-item {
        font-size: 0.95rem !important;
        padding: 10px 15px !important;
    }

    /* Tech stack – 3 columns on mobile */
    section.tech-stack-section .row > [class*="col-"] {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    section.tech-stack-section .xvt-tech-card {
        padding: 18px 10px 14px !important;
    }
    section.tech-stack-section .xvt-tech-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    section.tech-stack-section .xvt-tech-icon img {
        width: 32px;
        height: 32px;
    }
    section.tech-stack-section .xvt-tech-label {
        font-size: 0.75rem !important;
    }

    /* FAQ accordion */
    section.faq-section {
        padding: 50px 0 !important;
    }
    section.faq-section .xvt-accordion-header {
        padding: 14px 16px !important;
    }
    section.faq-section .xvt-accordion-title {
        font-size: 0.9rem !important;
    }
    section.faq-section .xvt-accordion-body {
        padding: 5px 16px 18px !important;
    }
    section.faq-section .xvt-accordion-body p {
        font-size: 0.88rem !important;
    }

    /* Subscribe section */
    section.subscribe .col-md-4,
    section.subscribe .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center;
    }

    /* General card fixes */
    .card {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Image fit for all sections */
    .fit-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* Breadcrumb on subpages */
    .breadcrumb {
        font-size: 0.85rem !important;
        justify-content: center;
    }

    /* Funfacts section */
    section.funfacts .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px;
    }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    :root { --h1-size: 1.8rem; --h2-size: 1.5rem; }

    /* Hero Slider */
    #slider .title { font-size: 1.45rem !important; line-height: 1.2 !important; }
    #slider .description { font-size: 0.85rem !important; }
    #slider .buttons .btn {
        font-size: 0.8rem !important;
        padding: 8px 18px !important;
        width: 100%;
        text-align: center;
    }

    /* Hide top info bar on very small screens */
    nav.navbar.top { display: none !important; }

    /* Sidebar dialog width */
    #menu .modal-dialog { max-width: 85vw !important; }

    /* Section headings */
    section h2 { font-size: 1.5rem !important; }
    section h4 { font-size: 1.05rem !important; }

    /* Quote modal padding */
    #quoteModal .modal-body { padding: 20px 15px !important; }
    #quoteModal .modal-header { padding: 16px 20px !important; }

    /* Process steps – 1 col on very small */
    section#process .row.items .col-lg-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* About results – single column */
    section#about-2 .row.items .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Tech stack – 2 columns */
    section.tech-stack-section .row > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Funfacts section – single col */
    section.funfacts .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Contact form inputs full width */
    section.form.contact .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* CTA buttons stack */
    section.cta-section .primary-button,
    section.cta-section .outline-button {
        font-size: 0.88rem !important;
        padding: 10px 20px !important;
    }

    /* Footer */
    #footer .footer-left { text-align: center; }
    #footer .footer-left .navbar-nav { align-items: center; }
    #footer .footer-right .card {
        text-align: center;
        padding: 15px 10px !important;
    }

    /* Cards smaller padding */
    section.offers .item .card {
        padding: 20px 15px !important;
    }

    /* Service/Project detail */
    section#single .title-icon h2 {
        font-size: 1.3rem !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.78rem !important;
    }
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 0.75rem;
    }
}

/*----------------------------------------------
