:root {
    --primary-purple: #6f32e5;
    --dark-purple: #5621c2;
    --light-purple: #f4efff;
    --text-dark: #100a21;
    --footer-bg: #0b071e;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

.text-purple {
    color: var(--primary-purple);
}

.bg-purple {
    background-color: var(--primary-purple);
}

.bg-light-purple {
    background-color: var(--light-purple);
}

/* Buttons */
.btn-purple {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-purple:hover {
    background-color: var(--dark-purple);
    color: white;
}

.btn-outline-purple {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
}

.btn-outline-purple:hover {
    background-color: var(--primary-purple);
    color: white;
}

/* Navbar */
.navbar {
    z-index: 998;
}

.navbar-nav .nav-link {
    color: #4a4a4a;
    font-weight: 500;
    margin-right: 15px;
}

.navbar-nav .nav-link.active {
    color: var(--primary-purple);
}
.navbar{
    padding: 0;
}
.navbar .navbar-brand img{
    max-width: 180px;
}

/* Responsive Navbar Collapse */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 12px;
    }
    
    .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }
    
    .navbar-collapse {
        width: 100%;
    }

}

.section-padding{
    padding: 0 50px 0 50px;
}

.container-fluid{
    max-width: 1920px;
}


/* =========================================
   Popup
========================================= */

.custom-popup-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9998;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
}

.custom-popup{
    position: fixed;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);

    width: 95%;
    max-width: 780px;

    background: #ffffff;
    border-radius: 10px;

    padding: 28px;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;

    box-shadow: 0 30px 80px rgba(0,0,0,.15);
}

/* Active */

.custom-popup.active,
.custom-popup-overlay.active{
    opacity: 1;
    visibility: visible;
}

.custom-popup.active{
    transform: translate(-50%, -50%) scale(1);
}

/* Close */

.popup-close{
    position: absolute;
    top: 18px;
    right: 18px;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: none;

    background: #f5efff;
    color: #7b2ff7;

    font-size: 20px;
    cursor: pointer;
}

/* Tabs */

.popup-tabs{
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
}

.popup-tab{
    flex: 1;

    height: 50px;

    border-radius: 14px;
    border: 1px solid #e6d7ff;

    background: #ffffff;

    font-size: 18px;
    font-weight: 700;

    color: #555;

    cursor: pointer;

    transition: 0.3s ease;
}

.popup-tab.active{
    background: #7b2ff7;
    color: #ffffff;
    border-color: #7b2ff7;
}

/* Form Content */

.popup-form-content{
    display: none;
}

.popup-form-content.active{
    display: block;
}

/* Heading */

.popup-form-content h2{
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111111;
}

.popup-form-content p{
    color: #666666;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Input */

.custom-input{
    height: 50px;
    border-radius: 5px;
    border: 1px solid #e9ddff;

    padding: 0 18px;

    font-size: 16px;

    box-shadow: none !important;
    color: #c9c0df;
}

.custom-textarea{
    height: 140px !important;
    padding-top: 18px;
    resize: none;
}

/* Button */

.popup-submit-btn{
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 16px;

    background: #7b2ff7;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    transition: 0.3s ease;
}

.popup-submit-btn:hover{
    background: #111111;
}




/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #b0aeb7;
    padding: 60px 0 20px;
}

footer a {
    color: #b0aeb7;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

footer th,
footer h5 {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #221c38;
    padding-top: 20px;
    font-size: 14px;
}

/* =========================================
   Auto Popup Modal
========================================= */

.auto-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auto-popup-overlay.active {
    display: block;
    opacity: 1;
}

.auto-popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(123, 47, 247, 0.3);
    z-index: 999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.auto-popup-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.auto-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0e7ff;
    border-radius: 50%;
    color: #7b2ff7;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

.auto-popup-close:hover {
    background: #e8dff7;
    transform: rotate(90deg);
}

/* Content */
.auto-popup-content {
    padding: 40px 32px;
    position: relative;
}

.auto-popup-header {
    text-align: center;
    margin-bottom: 28px;
}

.auto-popup-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
}

.auto-popup-header p {
    font-size: 15px;
    color: #888888;
    margin: 0;
}

/* Form */
.auto-popup-form .row {
    /* gap: 12px; */
}

.auto-popup-input {
    height: 44px;
    border: 1.5px solid #e8e0f7;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s ease;
    color: #c9c0df;
}

.auto-popup-input:focus {
    border-color: #7b2ff7;
    box-shadow: 0 0 0 0.2rem rgba(123, 47, 247, 0.1);
}

.auto-popup-input::placeholder {
    color: #c9c0d8;
}

.auto-popup-submit {
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(90deg, #7b2ff7 0%, #5f1ddf 100%);
    border: none;
    color: #ffffff;
    transition: 0.3s ease;
    margin-top: 8px;
}

.auto-popup-submit:hover {
    background: linear-gradient(90deg, #6a1de3 0%, #5415d0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 247, 0.2);
}

/* Footer Text */
.auto-popup-footer {
    font-size: 13px;
    color: #888888;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}
footer .footer-logo{
    max-width: 180px;
    margin-bottom: 20px;
}

/* Responsive */
@media(max-width:576px) {
    .auto-popup-modal {
        max-width: 85%;
    }

    .auto-popup-content {
        padding: 30px 24px;
        overflow-y: auto;
        max-height: calc(95vh);
    }

    .auto-popup-header h3 {
        font-size: 22px;
    }

    .auto-popup-header p {
        font-size: 14px;
    }

    .auto-popup-input {
        height: 42px;
        font-size: 13px;
    }

    .auto-popup-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .auto-popup-footer {
        font-size: 12px;
    }
}
/* =========================================
   Responsive
========================================= */

@media(max-width:991px){
    .section-padding {
        padding: 0 20px;
    }
    .navbar-toggler:focus{
        box-shadow:none;
    }
}

@media(max-width:768px){

    .custom-popup{
        padding: 30px 20px;
    }

    .popup-tabs{
        flex-direction: column;
    }

    .popup-form-content h2{
        font-size: 32px;
    }

}

@media (max-width: 991px) {
    .section-padding {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .custom-input{
        height: 40px;
        font-size: 14px;
    }
    .section-padding{
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
}
