/* Custom CSS for LMS Campus */
:root {
    /* New Color Palette */
    --primary-color: #1B3C53;      /* Dark Blue - Main brand color */
    --secondary-color: #234C6A;    /* Medium Blue - Secondary actions */
    --accent-color: #456882;       /* Light Blue - Accents and highlights */
    --light-accent: #D2C1B6;       /* Light Beige - Subtle backgrounds */
    
    /* Status Colors */
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #456882;         /* Using our light blue for info */
    
    /* Neutral Colors */
    --light-color: #f8f9fa;
    --dark-color: #1B3C53;         /* Using primary for dark */
    --white: #ffffff;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #234C6A;           /* Using secondary blue */
    --gray-900: #1B3C53;           /* Using primary blue */
    
    /* Design System */
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --box-shadow: 0 0.125rem 0.25rem rgba(27, 60, 83, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(27, 60, 83, 0.175);
    --box-shadow-hover: 0 0.5rem 1rem rgba(27, 60, 83, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.5s both;
}

.hero-image img {
    border-radius: var(--border-radius);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Advanced Feature Cards */
.advanced-feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.advanced-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.advanced-feature-card .card-body {
    padding: 2rem;
}

.advanced-feature-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.advanced-feature-card ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.object-cover {
    object-fit: cover;
}

/* Integration Items */
.integration-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.integration-item:hover {
    transform: translateY(-5px);
}

.integration-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.integration-item:hover .integration-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.integration-item h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.integration-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 62, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

/* Enhanced Statistics */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.counter {
    color: var(--primary-color);
    font-weight: 700;
}

/* Enhanced AI Features */
.ai-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.ai-feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow-lg);
}

.ai-feature-item i {
    font-size: 2rem;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
}

.ai-feature-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ai-feature-item p {
    color: var(--gray-600);
    margin: 0;
}

/* Statistics */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.counter {
    color: var(--accent-color);
    font-weight: 700;
}

/* About Points */
.about-point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-point i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-right: 0.25rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--gray-600);
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    margin-right: 1rem;
    width: 20px;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.contact-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Footer */
footer {
    background: var(--gray-900) !important;
    border-top: 1px solid var(--gray-700);
}

footer h5, footer h6 {
    color: var(--white);
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-800);
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feature-card,
    .pricing-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .ai-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-feature-item i {
        margin: 0 0 1rem 0;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-custom {
    box-shadow: var(--box-shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Custom Button Styles */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Schema Markup Helper */
.schema-markup {
    display: none;
}

/* Performance Optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Enhanced Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer-effect {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Advanced Button Styles */
.btn-advanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-advanced:hover::before {
    left: 0;
}

.btn-advanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .advanced-feature-card .row {
        flex-direction: column;
    }
    
    .advanced-feature-card .col-md-4 {
        max-width: 100%;
    }
    
    .advanced-feature-card img {
        height: 200px !important;
        width: 100% !important;
        border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    }
    
    .integration-item {
        margin-bottom: 2rem;
    }
    
    .ai-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ai-feature-item i {
        margin: 0 0 1rem 0;
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Accessibility */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .pricing-card,
    .testimonial-card,
    .advanced-feature-card {
        border: 2px solid var(--dark-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .hero-section,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* Legal Pages Specific Styles */
.legal-page {
    background: var(--gray-50);
    min-height: 100vh;
}

.legal-page .container {
    max-width: 1000px;
}

.legal-page h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.legal-page .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.legal-page .card-body {
    padding: 2.5rem;
}

.legal-page h2 {
    color: var(--gray-800);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-page h3 {
    color: var(--gray-700);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-page ul {
    color: var(--gray-600);
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-page .text-muted {
    color: var(--gray-500) !important;
    font-style: italic;
}

.legal-page .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.legal-page .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 144, 220, 0.3);
}

.legal-page footer {
    margin-top: 0;
}

/* overrides */
.bg-primary{
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Legal Page Print Styles */
@media print {
    .legal-page .navbar,
    .legal-page footer,
    .legal-page .btn {
        display: none !important;
    }
    
    .legal-page .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .legal-page h1,
    .legal-page h2,
    .legal-page h3 {
        color: #000 !important;
    }
    
    .legal-page p,
    .legal-page li {
        color: #333 !important;
    }
}