/* Solar Lighting Template - Main CSS */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: #2563eb;
    --primary-green: #10b981;
    --primary-orange: #f59e0b;
    --primary-teal: #0d9488;
    --primary-indigo: #6366f1;
    
    /* Light Shades */
    --light-blue: #dbeafe;
    --light-green: #d1fae5;
    --light-orange: #fef3c7;
    --light-teal: #ccfbf1;
    --light-indigo: #e0e7ff;
    
    /* Dark Shades */
    --dark-blue: #1e40af;
    --dark-green: #059669;
    --dark-orange: #d97706;
    --dark-teal: #0f766e;
    --dark-indigo: #4f46e5;
    
    /* Neutral Colors */
    --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;
    
    /* Additional Variables */
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-800);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* Header & Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: white;
}

.btn-outline-secondary {
    color: var(--gray-600);
    border-color: var(--gray-600);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: white;
}

/* Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--gray-800);
    font-weight: 600;
}

.card-text {
    color: var(--gray-600);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-teal) 100%);
    position: relative;
    overflow: hidden;
}

#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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

#hero .container {
    position: relative;
    z-index: 1;
}

/* Services Section */
#services .card {
    height: 100%;
    border: none;
    box-shadow: var(--shadow-sm);
}

#services .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Features Section */
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Team Section */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--light-blue);
    transition: var(--transition);
}

.team-member:hover img {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

/* Gallery Section */
#gallery img {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

#gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */
#faq .card {
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

#faq .card:hover {
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

/* Contact Form */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--gray-800) !important;
    color: var(--gray-300);
}

footer h5, footer h6 {
    color: white;
}

footer a {
    color: var(--gray-400);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Utility Classes */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
}

.bg-light-pattern {
    background-color: var(--gray-50);
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 20px 20px;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: var(--transition);
}

.breadcrumb-item:hover img {
    opacity: 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Grid for Team */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Icon Styling */
.fas, .far, .fab {
    line-height: inherit;
}

/* Price Plan Highlights */
.border-primary {
    border-color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Custom Spacing */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Form Enhancements */
.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: var(--gray-600);
}

/* Success and Warning Colors */
.text-success {
    color: var(--primary-green) !important;
}

.text-warning {
    color: var(--primary-orange) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

.bg-warning {
    background-color: var(--primary-orange) !important;
}

/* Border Utilities */
.border-0 {
    border: 0 !important;
}

.rounded-3 {
    border-radius: var(--border-radius) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Background Opacity Utilities */
.bg-opacity-10 {
    background-color: rgba(37, 99, 235, 0.1) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    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;
    }
}
