/* Main CSS for GreenEnergy Renewable Energy Template */

/* Color Palette */
:root {
    --primary-green: #298b27;
    --primary-blue: #258cd8;
    --primary-orange: #fda415;
    --primary-teal: #00574b;
    --primary-purple: #6c3bb7;
    --light-green: #76d074;
    --light-blue: #5fa4fe;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #373535;
    --dark-green: #164a11;
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-secondary: linear-gradient(135deg, var(--primary-teal), var(--primary-orange));
    --gradient-tertiary: linear-gradient(135deg, var(--primary-purple), var(--primary-teal));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 21px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.59rem !important;
    font-weight: 700;
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.1);
    transition: all 1.27s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--gradient-primary) !important;
}

/* Utility Classes */
.text-primary { color: var(--primary-green) !important; }
.bg-light { background-color: var(--light-gray) !important; }

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Conservative Font Sizes */
h1 {
    font-size: 2.59rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.92rem;
}

h3 {
    font-size: 1.57rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.59rem;
}

h4 {
    font-size: 1.31rem;
    font-weight: 500;
    color: var(--primary-teal);
    margin-bottom: 0.67rem;
}

h5 {
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.74rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 0.5rem;
    transition: all 1.27s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section h2 {
    color: var(--light-green);
    font-size: 1.62rem;
    margin-bottom: 1.68rem;
}

.hero-section p {
    color: var(--white);
    font-size: 1.17rem;
    margin-bottom: 2rem;
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 1.27s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 1.27s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Services Section */
#services .card-body {
    padding: 2rem;
}

#services .card-title {
    color: var(--primary-green);
    font-weight: 600;
}

#services .card-text {
    color: var(--dark-gray);
    margin-bottom: 1.64rem;
}

#services ul {
    list-style: none;
    padding: 0;
}

#services ul li {
    padding: 0.25rem 0;
    color: var(--dark-gray);
}

#services ul li:before {
    content: "âœ“";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Features Section */
.text-success {
    color: var(--primary-teal) !important;
}

.text-warning {
    color: var(--primary-orange) !important;
}

.text-info {
    color: var(--primary-blue) !important;
}

.text-danger {
    color: var(--primary-purple) !important;
}

/* Background Colors */
.bg-success {
    background: var(--gradient-secondary) !important;
}

.bg-warning {
    background-color: var(--primary-orange) !important;
}

/* Icon Styles */
.fas, .far, .fab {
    transition: all 1.27s ease;
}

.fas:hover, .far:hover, .fab:hover {
    transform: scale(1.1);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Contact Form Styles */
.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 1.27s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(38, 113, 47, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--light-gray);
    border: none;
    color: var(--dark-gray);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-tertiary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(51, 136, 53, 0.25);
}

/* Gallery Styles */
#gallery img {
    border-radius: 10px;
    transition: all 1.27s ease;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

footer h5 {
    color: var(--white) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p, footer li {
    color: var(--white) !important;
}

footer a {
    color: var(--light-green) !important;
    text-decoration: none;
    transition: all 1.27s ease;
}

footer a:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

/* Breadcrumb Styles */
.breadcrumb-section {
    background-color: var(--light-gray);
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumb-image {
    height: 30px;
    width: auto;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.75s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-end {
    text-align: right;
}

.mb-1 { margin-bottom: 0.36rem; }
.mb-2 { margin-bottom: 0.66rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.67rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding: 3rem 0; }

/* Image Responsive Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Space Section */
#space {
    min-height: 60vh;
    background: var(--gradient-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border-radius: 15px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* High Contrast for Accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #236f2e;
        --primary-blue: #124b9b;
        --dark-gray: #000000;
        --white: #ffffff;
    }
    
    .card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-green);
    }
}

/* Additional Enhancement Classes */
.price-card {
    transition: all 1.27s ease;
}

.price-card.highlighted {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(33, 103, 27, 0.20);
}

.team-card {
    position: relative;
    overflow: hidden;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 113, 56, 0.90);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.27s ease;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 2.22s ease;
}

/* Contact Form Enhancement */
.contact-info {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-top: 2rem;
}

/* Error States */
.is-invalid {
    border-color: #f53c5a !important;
    box-shadow: 0 0 0 0.2rem rgba(196, 41, 59, 0.25) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
} 


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
