/* Main CSS - Energy Storage Template */

/* ==========================================
   CSS VARIABLES & COLOR PALETTE
   ========================================== */
:root {
    /* Primary Colors */
    --primary-green: #28a745;
    --primary-blue: #007bff;
    --primary-orange: #fd7e14;
    --primary-purple: #6f42c1;
    --primary-teal: #20c997;
    
    /* Light Shades */
    --light-green: #d4edda;
    --light-blue: #cce7ff;
    --light-orange: #fff3cd;
    --light-purple: #e2d9f3;
    --light-teal: #c3f7e8;
    
    /* Dark Shades */
    --dark-green: #155724;
    --dark-blue: #004085;
    --dark-orange: #b45309;
    --dark-purple: #432874;
    --dark-teal: #0f5132;
    
    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
body {
    font-family: var(--font-family-sans);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Conservative font sizing */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.display-4 {
    font-size: 2.5rem;
}

.lead {
    font-size: 1.1rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-base);
    z-index: 1030;
}

.navbar-brand {
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--dark-blue);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    position: relative;
}

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

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

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

/* Space Theme Styles */
.space-theme #hero {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    color: white;
}

.space-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 70%;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
#services .card {
    transition: var(--transition-base);
    border: none;
    height: 100%;
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.price-tag {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* ==========================================
   STATISTICS & COUNTERS
   ========================================== */
.stat-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: var(--transition-base);
}

.team-member:hover img {
    transform: scale(1.05);
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
#gallery img {
    transition: var(--transition-base);
    border-radius: 0.5rem;
}

#gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
#testimonials .card {
    border: none;
    transition: var(--transition-base);
}

#testimonials .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stars i {
    font-size: 0.9rem;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
#faq .card {
    border: none;
    transition: var(--transition-base);
}

#faq .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.form-control, .form-select {
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
    background: var(--gray-900);
}

#footer a {
    transition: var(--transition-fast);
}

#footer a:hover {
    color: var(--primary-blue) !important;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumb-section {
    margin-top: 76px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item img {
    filter: grayscale(50%);
    transition: var(--transition-fast);
}

.breadcrumb-item:hover img {
    filter: grayscale(0%);
}

/* ==========================================
   ADDITIONAL PAGE STYLES
   ========================================== */

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--gray-300);
}

/* Safety Cards */
.safety-card {
    transition: var(--transition-base);
}

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

/* Schedule Items */
.schedule-item {
    transition: var(--transition-base);
}

.schedule-item:hover {
    transform: translateX(5px);
}

/* Comparison Cards */
.comparison-card {
    transition: var(--transition-base);
}

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

/* Feature Blocks */
.feature-block {
    transition: var(--transition-base);
}

.feature-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Tech Stats */
.tech-stat {
    transition: var(--transition-base);
}

.tech-stat:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Trend Items */
.trend-item {
    transition: var(--transition-base);
}

.trend-item:hover {
    transform: translateX(10px);
}

/* Legal Content */
.legal-section .card {
    border: none;
    transition: var(--transition-base);
}

.legal-section .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-teal));
}

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

.shadow-hover {
    transition: var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Subtle hover animations */
.btn {
    transition: var(--transition-base);
}

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

.card {
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Image hover effects */
img {
    transition: var(--transition-base);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-600: #000000;
        --gray-800: #000000;
    }
    
    .card {
        border: 2px solid var(--gray-800);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .breadcrumb-section,
    #contact,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
} 