/* Verilinc Corporate Website Styles */
/* Color palette inspired by Verilinc logo: Green (#4CAF50), Orange (#FF9800) */

:root {
    --verilinc-green: #4CAF50;
    --verilinc-orange: #FF9800;
    --verilinc-dark-green: #388E3C;
    --verilinc-light-green: #C8E6C9;
    --verilinc-dark-orange: #F57C00;
    --verilinc-light-orange: #FFE0B2;
    --text-dark: #2E2E2E;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stats Cards */
.stats-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verilinc-green), var(--verilinc-orange));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verilinc-green);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible;
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .stats-card {
        padding: 1.5rem 0.5rem;
    }
    
    .stats-number {
        font-size: 1.4rem;
        white-space: nowrap;
    }
    
    .stats-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 1.2rem 0.5rem;
    }
    
    .stats-number {
        font-size: 1.2rem;
    }
    
    .stats-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    background-color: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verilinc-green) !important;
}

/* Logo transparency styles */
.logo-transparent {
    opacity: 0.7;
    transition: var(--transition);
}

.logo-transparent:hover {
    opacity: 1;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.navbar-brand img:hover {
    opacity: 1;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--verilinc-light-green);
    color: var(--verilinc-dark-green) !important;
}

/* Language Selector */
.language-selector .dropdown-toggle {
    background: none;
    border: 1px solid var(--verilinc-green);
    color: var(--verilinc-green);
    border-radius: var(--border-radius);
    padding: 0.375rem 0.75rem;
}

.language-selector .dropdown-toggle:hover {
    background-color: var(--verilinc-green);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--verilinc-green) 0%, var(--verilinc-orange) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn-primary {
    background-color: var(--verilinc-orange);
    border-color: var(--verilinc-orange);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--verilinc-dark-orange);
    border-color: var(--verilinc-dark-orange);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--verilinc-green);
    border-color: var(--verilinc-green);
    background: transparent;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--verilinc-green);
    border-color: var(--verilinc-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--verilinc-green);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section.featured-services {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--verilinc-green), var(--verilinc-orange));
    margin: 20px auto;
    border-radius: 2px;
}

/* Brand Sections */
.brand-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.brand-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.brand-logo {
    font-size: 3rem;
    margin-bottom: 20px;
}

.medmac-tech {
    color: var(--verilinc-green);
}

.medmac-net {
    color: var(--verilinc-orange);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--verilinc-green);
    margin-bottom: 15px;
}

.service-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-left-color: var(--verilinc-orange);
}

.service-icon {
    font-size: 2rem;
    color: var(--verilinc-green);
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--verilinc-orange);
}

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

.service-features li {
    padding: 3px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--verilinc-green);
    font-weight: bold;
}

/* Partnership Cards */
.partnership-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.partnership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.partnership-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--verilinc-light-green);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--verilinc-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

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

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-info-item:hover {
    background-color: var(--verilinc-light-green);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--verilinc-green);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.rtl .contact-info-item i {
    margin-right: 0;
    margin-left: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--verilinc-green);
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--verilinc-orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

.social-links a:hover {
    background: var(--verilinc-orange);
    transform: translateY(-2px);
}

/* Admin Styles */
.admin-layout {
    min-height: 100vh;
    padding-top: 76px; /* Account for fixed navbar */
}

.admin-sidebar {
    background: var(--text-dark);
    color: var(--white);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin: 5px 15px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--verilinc-green);
    color: var(--white);
}

.admin-main {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
    .admin-main {
        margin-left: 250px;
    }
}

.admin-content {
    padding: 30px;
}

.stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verilinc-green), var(--verilinc-orange));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: var(--verilinc-light-green);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verilinc-green);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stats-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Core Web Vitals Optimization */
.preload-fonts {
    font-display: swap;
}

/* Image optimization */
img {
    height: auto;
    max-width: 100%;
}

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Performance improvements */
.hero-section {
    contain: layout style paint;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--verilinc-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--verilinc-green);
    outline-offset: 2px;
}

/* Rich Text Editor */
.ql-toolbar {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.ql-container {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    margin-bottom: 20px;
}

.alert-success {
    background-color: var(--verilinc-light-green);
    color: var(--verilinc-dark-green);
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-info {
    background-color: var(--verilinc-light-orange);
    color: var(--verilinc-dark-orange);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--verilinc-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .brand-card {
        margin-bottom: 30px;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .language-selector {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .brand-card,
    .contact-form {
        padding: 30px 20px;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .section {
        padding: 20px 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.form-control:focus {
    outline: 2px solid var(--verilinc-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .btn-outline-primary,
    .btn-outline-white {
        border-width: 2px;
    }
}

/* 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;
    }
}
