/* Modern Finovate Website - Consulting Theme */

/* CSS Variables for consistent branding */
:root {
    --primary-color: #108084;
    --primary-dark: #166d74;
    --primary-light: #dcfce7;
    --secondary-color: #6b7280;
    --accent-color: #65BBBA;
    --text-dark: #111827;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #108084;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.display-3 {
    font-weight: 800;
    line-height: 1.1;
    font-size: 3.5rem;
}

.display-4 {
    font-weight: 800;
    line-height: 1.1;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

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

.text-muted {
    color: var(--text-light) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 1rem 0;
}

.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Modern Button Styles */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    border-width: 2px;
    padding: 0.75rem 1.5rem;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

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

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

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

.rounded-pill {
    border-radius: 50rem !important;
}

/* Modern Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--primary-color);
    margin: 0 0.5rem;
    font-weight: 400;
    opacity: 0.7;
}

.breadcrumb-item a {
    font-weight: 500;
    transition: color 0.2s ease;
    color: var(--primary-color) !important;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark) !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.breadcrumb-item .fas {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* Breadcrumb Section with Primary Background */
.breadcrumb-section {
    background-color: var(--primary-color);
}

.breadcrumb-section .breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
    font-weight: 400;
    opacity: 0.8;
}

.breadcrumb-section .breadcrumb-item a {
    color: white !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.breadcrumb-section .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.breadcrumb-section .breadcrumb-item .fas {
    color: white;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark) !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.breadcrumb-item .fas {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-image-bg {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid var(--border-color);
}

.floating-card {
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-30px);
    }
}

.floating-card:last-child {
    animation-direction: reverse;
}

/* Background Shapes */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 70%);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.badge.bg-success {
    background-color: var(--primary-color) !important;
}

.badge.bg-light {
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
}

/* Icon Styles */
.icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utilities */
.min-vh-100 {
    min-height: 100vh;
}

.lh-1 {
    line-height: 1 !important;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-image {
        margin-top: 2rem;
    }
    
    .floating-card {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .display-3 {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .floating-card {
        transform: scale(0.8);
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-image {
        margin-top: 2rem;
        order: 2;
    }
    
    .hero-content {
        order: 1;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Additional Responsive Styles */

.btn-outline-dark {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Modern Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    position: relative;
}

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

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Modern Hero Section */
.modern-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23f8f9fa"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat;
    background-size: 100% 100px;
    bottom: -1px;
    opacity: 0.5;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-content .badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.hero-image {
    z-index: 1;
    position: relative;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

/* Modern Cards and Components */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

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

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Service Highlights */
.service-highlight {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}
.service-strategic {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}


.service-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.service-highlight:hover::before {
    right: 100%;
}

/* Icon Circles */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
}

/* Progress Bars */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Form Styling */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Feature Section */
.feature-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-item .icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Statistics Section */
.stats-section {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--bg-light);
}

.team-member h4 {
    margin-bottom: 0.5rem;
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .text-success {
    color: var(--success) !important;
    font-size: 1.2em;
    margin-right: 0.5rem;
}

.footer-links li a {
    color: #b8b8b8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links li a:hover {
    color: var(--success) !important;
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--success);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-legal-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--success) !important;
}

.text-light-emphasis {
    color: #b8b8b8 !important;
}

/* Footer Responsive Design */
@media (max-width: 992px) {
    .modern-footer .col-lg-3,
    .modern-footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 0 !important;
    }
    
    .footer-brand h4 {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    .footer-legal-link {
        display: inline-block;
        margin: 0 1rem;
    }
}

@media (max-width: 576px) {
    .modern-footer .container {
        padding: 0 1rem;
    }
    
    .footer-brand .btn {
        width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Forms */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fff4;
    color: #2f855a;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #fed7d7;
    color: #c53030;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fefcbf;
    color: #975a16;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #ebf8ff;
    color: #2c5282;
    border-left: 4px solid var(--secondary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Calendar */
.calendar {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-event {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.event-deadline {
    background-color: #fed7d7;
    color: #c53030;
    border-left: 3px solid var(--danger-color);
}

.event-reminder {
    background-color: #fefcbf;
    color: #975a16;
    border-left: 3px solid var(--warning-color);
}

.event-important {
    background-color: #ebf8ff;
    color: #2c5282;
    border-left: 3px solid var(--secondary-color);
}

/* Job Listings */
.job-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.job-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.job-meta span {
    margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .feature-item .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-item .number {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .feature-section {
        padding: 3rem 0;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .service-card,
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--text-dark);
    min-height: 100vh;
    padding: 1rem;
}

.admin-sidebar .nav-link {
    color: #cbd5e0 !important;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

.admin-content {
    padding: 2rem;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.admin-header {
    background-color: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* Dashboard Stats */
.stat-card {
    background: var(--primary-color);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Data Tables */
.table {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    vertical-align: middle;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.bg-primary { background-color: var(--primary-color) !important;}
.bg-light-primary {
    background-color: rgba(44, 82, 130, 0.1) !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}