:root {
    --almostwhite: #f9f7f7;
    --haze: #dbe2ef;
    --myblue: #3f72af;
    --bizblue: #112d4e;
}

/* Override Bootstrap primary color */
:root {
    --bs-primary: #3f72af;
    --bs-primary-rgb: 63, 114, 175;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--bizblue);
    background-color: var(--almostwhite);
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(17, 45, 78, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--almostwhite);
}

.logo-accent {
    color: var(--myblue);
}

.custom-navbar .nav-link {
    color: var(--haze) !important;
    font-weight: 500;
    transition: color 0.3s;
}

    .custom-navbar .nav-link:hover {
        color: var(--myblue) !important;
    }

.custom-navbar .btn-primary {
    background-color: var(--myblue);
    border-color: var(--myblue);
    border-radius: 25px;
}

    .custom-navbar .btn-primary:hover {
        background-color: transparent;
        border-color: var(--myblue);
        color: var(--myblue);
    }

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, var(--bizblue), var(--myblue), #2a5a8f, var(--bizblue));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--almostwhite);
    min-height: 100vh;
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(219, 226, 239, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(63, 114, 175, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(219, 226, 239, 0.08) 0%, transparent 50%);
        animation: float 20s ease-in-out infinite;
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

.cta-button {
    animation: pulse 2s ease-in-out infinite;
    border-radius: 50px !important;
    font-weight: bold;
}

/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px !important;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 20px 40px rgba(63, 114, 175, 0.25) !important;
    }

.service-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card .card-title {
    color: var(--myblue);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--haze);
}

.pricing-card {
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .pricing-card:hover {
        transform: translateY(-10px) scale(1.03);
    }

.pricing-featured {
    background: linear-gradient(135deg, var(--myblue) 0%, var(--bizblue) 100%);
    transform: scale(1.05);
}

    .pricing-featured:hover {
        transform: translateY(-10px) scale(1.08);
        box-shadow: 0 25px 60px rgba(63, 114, 175, 0.4) !important;
    }

/* Testimonial Cards */
.testimonial-card {
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .testimonial-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(63, 114, 175, 0.2) !important;
    }

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--myblue), var(--bizblue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form-card {
    border-radius: 20px;
}

/* Login Page */
.login-page {
    background: linear-gradient(-45deg, var(--bizblue), var(--myblue), #2a5a8f, var(--bizblue));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

    .login-page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(219, 226, 239, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(63, 114, 175, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(219, 226, 239, 0.08) 0%, transparent 50%);
        animation: float 20s ease-in-out infinite;
    }

.login-card {
    backdrop-filter: blur(20px);
    border-radius: 25px !important;
    animation: fadeInUp 0.8s ease;
}

.divider {
    position: relative;
    text-align: center;
}

    .divider hr {
        margin: 0;
    }

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(63, 114, 175, 0.3);
    }

    50% {
        box-shadow: 0 10px 40px rgba(63, 114, 175, 0.5);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--myblue);
    border-color: var(--myblue);
}

    .btn-primary:hover {
        background-color: var(--bizblue);
        border-color: var(--bizblue);
    }

.btn-outline-primary {
    color: var(--myblue);
    border-color: var(--myblue);
}

    .btn-outline-primary:hover {
        background-color: var(--myblue);
        border-color: var(--myblue);
        color: white;
    }

.text-primary {
    color: var(--myblue) !important;
}

.bg-primary {
    background-color: var(--myblue) !important;
}

.form-control:focus {
    border-color: var(--myblue);
    box-shadow: 0 0 0 0.25rem rgba(63, 114, 175, 0.25);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .pricing-featured {
        transform: scale(1);
    }
}
