@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0e12;
    --surface-dark: #161c24;
    --bg-light-dark: #0f172a;
    --primary-blue: #2563eb;
    --secondary-blue: #1d4ed8;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Improvement */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
}

.badge-custom {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Navbar Customization */
.navbar {
    background-color: transparent;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 14, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.hero-section {
    padding: 120px 0 80px;
    position: relative;
}

.card-custom {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.card-custom:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Maps and Images */
.img-placeholder {
    background-color: #2a2a2a;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    overflow: hidden;
}

.img-fluid {
    border-radius: 12px;
}

.bg-light-dark {
    background-color: var(--bg-light-dark);
}

.max-w-700 {
    max-width: 700px;
}

/* Form Styles */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.8rem 1rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
    color: var(--text-white);
    box-shadow: none;
}

/* Team Cards */
.team-card {
    background-color: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--primary-blue);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.max-w-700 {
    max-width: 700px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease-out forwards;
}

.object-fit-cover {
    object-fit: cover;
}

.border-radius-8 {
    border-radius: 8px;
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 80px;
        right: 15px;
        bottom: auto;
        width: 200px;
        padding: 1.25rem;
        background-color: var(--surface-dark);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        z-index: 2000;
        transform: translateX(120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start !important;
        padding-top: 20px;
    }

    .nav-link {
        margin: 0.4rem 0;
        font-size: 0.95rem;
        padding: 0;
    }

    .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
    }

    .w-100-mobile {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Backdrop for mobile menu */
    .navbar-toggler {
        z-index: 1001;
        position: relative;
    }

    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }

    .mt-5.d-flex.gap-4 {
        justify-content: center;
    }

    .badge-custom {
        margin-bottom: 0.5rem;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile FAB */
.mobile-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.mobile-fab button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Gallery */
.product-card {
    transition: var(--transition);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}

.product-img-wrapper img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}