/* Solar Lighting Template - Main CSS */

/* Color Variables */
:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --info: #06b6d4;
    --info-light: #22d3ee;
    --info-dark: #0891b2;
    --light: #f8fafc;
    --dark: #1e293b;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-800);
}

.display-1 { font-size: 3.5rem; }
.display-2 { font-size: 3rem; }
.display-3 { font-size: 2.5rem; }
.display-4 { font-size: 2rem; }

.h1 { font-size: 2rem; }
.h2 { font-size: 1.75rem; }
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.125rem; }
.h6 { font-size: 1rem; }

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

/* Navbar Customization */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    z-index: 1;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-radius: 1rem 1rem 0 0;
    height: 200px;
    object-fit: cover;
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background-color: var(--gray-50);
}

/* Icon Styling */
.fa, .fas, .far, .fab {
    transition: all 0.3s ease;
}

/* Hover Effects */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-light { color: var(--gray-300); }
.text-muted { color: var(--gray-500); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }

/* Opacity Utilities */
.bg-opacity-10 { background-color: rgba(var(--primary-rgb), 0.1); }
.bg-opacity-20 { background-color: rgba(var(--primary-rgb), 0.2); }

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form Styling */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Timeline Styling */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 1rem;
    width: 18px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--gray-400);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Footer */
#footer {
    background-color: var(--dark);
}

#footer a {
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--primary-light);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.rounded-circle {
    border-radius: 50%;
}

.rounded {
    border-radius: 0.5rem;
}

.rounded-lg {
    border-radius: 1rem;
}

/* Animation Base */
[data-sal] {
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

.lb-data .lb-number {
    color: var(--gray-300);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --secondary: #000000;
        --success: #008000;
        --warning: #ff8c00;
        --info: #00bfff;
        --dark: #000000;
        --light: #ffffff;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

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


/* Team Social Links - Gradient Style */
.team-social-links {
    margin-top: 20px;
    padding: 18px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.linkedin-link {
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #21cbf3 0%, #2196f3 100%);
}

.instagram-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.instagram-link:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.x-link {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    position: relative;
}

.x-link::after {
    content: '✦';
    font-weight: bold;
    font-size: 22px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: linear-gradient(135deg, #414345 0%, #232526 100%);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
