/* =============== ANIMATED BACKGROUND =============== */
body {
    background: #536976;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #292E49, #536976);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #292E49, #536976); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =============== NAVIGATION =============== */
.nav-masthead {
    display: flex !important;
}

.nav-masthead.active {
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    width: 70%;
    height: 100vh;
    flex-direction: column;
    padding-top: 80px;
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-masthead {
        display: none;
    }
}

/* =============== PROJECT CARDS =============== */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(138, 43, 226, 0.5);
}

/* =============== QUOTES =============== */
.quote-container {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* =============== FORMS =============== */
.form-control {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #8a2be2 !important;
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

/* =============== FOOTER =============== */
.animated-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: footerPulse 8s infinite alternate;
}

@keyframes footerPulse {
    0% {
        background: rgba(0, 0, 0, 0.3);
    }

    100% {
        background: rgba(138, 43, 226, 0.1);
    }
}

/* =============== UTILITIES =============== */
.text-primary {
    color: #8a2be2 !important;
}

.btn-primary {
    background: #022c44;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6a1cb0;
    transform: translateY(-2px);
}

.label{
    color: whitesmoke;
}
.label_heading{
    color: #8a2be2;
}

/* =============== LOADING SCREEN =============== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #8a2be2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.9;
}
