/* 
    bvm.Dev - Official Website Styling
    Design System & Utility Classes
*/

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

:root {
    /* Synvo Inspired Color Palette */
    --primary: #5C27FE;
    /* Vibrant Indigo */
    --primary-dark: #4A1EE0;
    --primary-glow: rgba(92, 39, 254, 0.15);
    --secondary: #1A1245;
    /* Deep Navy */
    --accent: #00D1FF;
    /* Bright Blue Accent */

    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-soft: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.3);

    /* Text Colors */
    --text-heading: #1A1245;
    --text-body: #4B5563;
    --text-muted: #9CA3AF;

    /* Spacing & Borders */
    --container-width: 1240px;
    --border-radius-sm: 8px;
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --border-soft: rgba(26, 18, 69, 0.08);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.1;
}

/* --- Layout --- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 18, 69, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--border-soft);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Component Styling */
.synvo-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-soft);
    position: relative;
    z-index: 1;
}

.synvo-card:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-10px);
}

.synvo-card:hover h3,
.synvo-card:hover p {
    color: white;
}

.synvo-card:hover .icon-box {
    background: white;
    color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--bg-soft);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.icon-box i {
    width: 32px;
    height: 32px;
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Brands Slider */
.brands-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.brands-container {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-item img {
    height: 35px;
    filter: grayscale(1);
    transition: var(--transition-smooth);
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Why Choose Us */
.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-soft);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--bg-soft);
    line-height: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ / Accordion */
.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.faq-header {
    background: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-soft);
}

.faq-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.faq-body {
    background: var(--bg-soft);
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-body {
    padding: 20px 25px;
    height: auto;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    perspective: 1000px;
}

.bvm-anim {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.bvm-anim .letter {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: #FFFFFF;
    opacity: 0;
    animation: fadeIn3D 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    letter-spacing: -2px;
    transform-style: preserve-3d;
    transform-origin: center;
}

@media (max-width: 767px) {
    .bvm-anim .letter {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }
}

.bvm-anim .letter:nth-child(1) {
    animation-delay: 0.2s;
}

.bvm-anim .letter:nth-child(2) {
    animation-delay: 0.6s;
}

.bvm-anim .letter:nth-child(3) {
    animation-delay: 1.0s;
}

@keyframes fadeIn3D {
    0% {
        opacity: 0;
        transform: translateZ(-200px) rotateY(-45deg) scale(0.8);
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        transform: translateZ(0) rotateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shineMove {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- Header --- */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info,
.top-bar-social {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.top-bar-info li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.8rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(26, 18, 69, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.header-logo {
    height: 70px;
    vertical-align: middle;
    mix-blend-mode: multiply;
    filter: contrast(1000%) brightness(1.1) grayscale(1);
    transition: var(--transition-smooth);
}

.nav-links a {
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 3rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(92, 39, 254, 0.1);
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* --- Services & About --- */
.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-image-wrapper {
    position: relative;
    flex: 1;
}

.feature-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.security-badge {
    position: absolute;
    top: 40px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* --- Contact & Footer --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    /* Ensure visibility on dark footer */
}

.footer {
    background: var(--secondary);
    color: white;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta {
    display: block;
}

/* --- Removed duplicate menu-toggle styles to avoid confusion --- */

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    border-radius: 10px;
    padding: 8px;
    flex-shrink: 0;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 991px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .nav {
        justify-content: space-between;
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Dedicated Mobile Sidebar with Premium Feel */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
        z-index: 1050;
        padding: 4rem 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--secondary);
        width: 100%;
        text-align: center;
        padding: 15px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        border: none;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance for menu items */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .header-logo {
        height: 55px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }

    .top-bar {
        display: none;
    }

    .header {
        padding: 0.8rem 0;
    }

    .logo img {
        height: 45px !important;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .experience-badge {
        margin-bottom: 1.5rem;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-btns a {
        margin: 0 !important;
        width: 100%;
        max-width: 280px;
    }

    .floating-card {
        display: none;
    }

    .about-flex {
        flex-direction: column;
        gap: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-choose-us .container,
    .services-grid,
    .projects-grid,
    .testimonials>.container>div,
    .faq .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-logo {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        max-width: none;
        padding: 1rem;
    }
}