/* ========================================
   BUSINESS ASSESSMENT LLC - CUSTOM STYLES
   Color Palette:
   - Primary: #5db153 (Green)
   - Secondary/Dark: #0a2943 (Navy Blue)
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #5db153;
    --primary-dark: #4a9344;
    --primary-light: #6fc265;
    --secondary-color: #0a2943;
    --secondary-dark: #061a2c;
    --secondary-light: #0f3555;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(10, 41, 67, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 41, 67, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 41, 67, 0.16);
    --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Alan Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alan Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

/* === NAVIGATION === */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem 0;
    transition: all 0.4s ease-in-out;
    position: sticky;
    top: 0;
    margin: 0;
    z-index: 1000;
}

.navbar .container {
    position: relative;
    z-index: 2;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-family: 'Alan Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

/* Navbar Logo */
.navbar-logo {
    max-height: 45px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .navbar-logo {
        max-height: 35px;
        max-width: 150px;
    }

    .navbar-brand span {
        font-size: 1.1rem;
    }
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Auth Buttons */
.btn-outline-primary-custom {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* User Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Off-Canvas Menu */
.offcanvas {
    background-color: var(--secondary-color);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: var(--white);
    font-family: 'Alan Sans', sans-serif;
    font-weight: 700;
}

/* Offcanvas Logo */
.offcanvas-logo {
    max-height: 35px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: var(--white) !important;
    padding: 1rem 1.5rem !important;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background-color: rgba(93, 177, 83, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.offcanvas .nav-link::after {
    display: none;
}

/* === HERO SECTION === */
.hero-section {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-top: -90px;
    padding-top: calc(6rem + 90px);
}

/* For mobile devices - disable fixed attachment */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        padding-top: calc(8rem + 90px);
        padding-bottom: 4rem;
    }
}

/* Hero Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: transparent;
    opacity: 0;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 3;
}

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

.hero-section h1 {
    color: var(--text-dark);
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-section h1 {
        margin-top: 3rem;
        font-size: 2.5rem;
    }
}

.hero-section .lead {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem;
    transition: var(--transition);
}

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

.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-hero-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* === SECTION STYLES === */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === SERVICES SECTION === */
.services-section {
    background-color: var(--bg-light);
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* === ABOUT SECTION === */
.about-section {
    background-color: var(--white);
}

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

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-features li i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.about-features li span {
    flex: 1;
    line-height: 1.6;
}

/* === PROCESS SECTION === */
.process-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.process-step {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.process-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.process-step:hover .process-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(93, 177, 83, 0.4);
}

.process-step h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Process Arrow (Desktop) */
.process-step::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}

/* === CONTACT SECTION === */
.contact-section {
    background-color: var(--white);
}

.contact-info-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Social Media Section */
.contact-social h4 {
    color: var(--secondary-color);
    font-size: 1.75rem;
}

.social-links-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links-contact .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-links-contact .social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* === FOOTER === */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* === AUTHENTICATION PAGES === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    padding: 2.5rem 2rem;
    text-align: center;
}

.auth-header h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-body {
    padding: 2.5rem 2rem;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white) !important;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(93, 177, 83, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(93, 177, 83, 0.3);
    color: var(--white) !important;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(93, 177, 83, 0.2);
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-light);
    border-top: 1px solid #e0e0e0;
}

/* === ANIMATIONS === */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

/* === UTILITIES === */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}
