/* Enhanced styles for CIM platform */

:root {
    /* Tailored Support Services color palette */
    --primary-color: #1a75ff;  /* Vibrant blue */
    --primary-dark: #0055cc;
    --primary-light: #4d94ff;
    --secondary-color: #d9a5b3;  /* Soft rose/mauve */
    --secondary-dark: #b5889a;
    --secondary-light: #f4d8e1;
    --accent-color: #ffc65c;  /* Warm golden yellow */
    --accent-dark: #e6b04d;
    --accent-light: #ffe0a3;
    --text-primary: #2e2236;
    --text-secondary: #5d4e69;
    --text-light: #ffffff;
    --bg-light: #f9f6fc;
    --bg-gray: #efe5f7;
    --bg-dark: #3d2e4a;
    --border-light: #efe5f7;
    --border-dark: #8c7a9c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', 'Nunito', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-light);
}

/* Enhanced Header & Navigation */
.navbar-dark {
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transition: all 0.3s ease;
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Navbar Links */
.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

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

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.dropdown-menu-lg-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* User Dropdown */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Login Button */
.btn-outline-light {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* Navbar Toggler */
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark) !important;
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

.navbar-dark .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.navbar-dark .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-speed);
    position: relative;
}

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

.navbar-dark .nav-link:hover::after,
.navbar-dark .nav-item.active .nav-link::after {
    width: 80%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--text-light);
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-color), var(--primary-light));
    color: var(--text-light);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Feature Cards */
.feature-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
    height: 100%;
    overflow: hidden;
}

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

.feature-card .card-body {
    padding: 2.5rem 2rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Enhanced Professional Cards */
.professional-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
}

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

.professional-card img {
    height: 280px;
    object-fit: cover;
    transition: all var(--transition-speed);
}

.professional-card:hover img {
    transform: scale(1.05);
}

.professional-info {
    padding: 1.75rem;
}

.professional-card h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.professional-specialty {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Enhanced Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-speed);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.btn-light {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    border-color: var(--bg-light);
    color: var(--primary-dark);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-light);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-speed);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}
