/* CSS Variables for Color Palette */
:root {
    --primary-color: #5a83e5;
    --primary-light: #5b8ce2;
    --primary-dark: #3d7ddc;
    --secondary-color: #77c04f;
    --secondary-light: #96c880;
    --secondary-dark: #66a241;
    --accent-color: #dc7d0f;
    --accent-light: #df8a2d;
    --accent-dark: #d8702d;
    --neutral-color: #9aa1a1;
    --neutral-light: #b0b4b6;
    --neutral-dark: #9aa3a5;
    --text-color: #435967;
    --text-light: #445a70;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.40rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Breadcrumb Styles */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 0.5rem 0;
}

.breadcrumb {
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../SEC_images/hero-bg.webp') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.53rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding-top: 175px;
}

.hero-section p {
    font-size: 1.12rem;
    margin-bottom: 1rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.68rem;
}

section h3 {
    font-size: 1.53rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.56rem;
}

section h4 {
    font-size: 1.32rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.72rem;
}

section h5 {
    font-size: 1.21rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.55rem;
}

section p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Card Styles */
.service-card, .price-card, .review-card, .blog-card, .casestudy-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .price-card:hover, .review-card:hover, .blog-card:hover, .casestudy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card .card-body, .price-card .card-body, .review-card .card-body, .blog-card .card-body, .casestudy-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card img, .blog-card img, .casestudy-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 0 0 1rem 1rem;
}

.price {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* Feature Items */
.feature-card, .feature-item, .info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .feature-item:hover, .info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card i, .feature-item i, .info-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Section */
.team-member {
    text-align: center;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Review Section */
.review-card {
    padding: 2rem;
    text-align: center;
}

.stars {
    color: var(--accent-color);
    font-size: 1.23rem;
    margin-bottom: 1rem;
}

/* Process Section */
.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.56rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) {
    text-align: right;
    margin-right: 50%;
}

.timeline-item:nth-child(even) {
    text-align: left;
    margin-left: 50%;
}

.timeline-date {
    font-size: 1.30rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.64rem;
}

/* Career Section */
.career-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.role-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.90rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border: 1px solid var(--neutral-light);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(88, 157, 223, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.91rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid var(--neutral-light);
    border-radius: 4px;
    margin-bottom: 0.59rem;
}

.accordion-button {
    background: var(--bg-white);
    border: none;
    padding: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 1rem;
    background: var(--bg-light);
}

/* Gallery Section */
.gallery-img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer h5 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--neutral-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
}

/* Space Section */
.space-section {
    min-height: 60vh;
    padding: 4rem 0;
    background: var(--bg-light);
}

/* Utility Classes */
.bg-light {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.59rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Additional Page Styles */
.service-item, .tech-item, .material-item, .cert-item, .project-item,
.tech-solution, .energy-feature, .environmental-benefit, .maintenance-service, .financial-benefit {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .tech-item:hover, .material-item:hover, .cert-item:hover, .project-item:hover,
.tech-solution:hover, .energy-feature:hover, .environmental-benefit:hover, .maintenance-service:hover, .financial-benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 175px;
}
    
    section h2 {
        font-size: 1.83rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 40px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 40px;
    }
}

/* Lazy Loading Image Styles */
img.lazy {
    background: var(--bg-light);
    min-height: 200px;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

img.lazy.loaded, img:not(.lazy) {
    opacity: 1;
}

/* Nanobar Styles */
#nanobar-target {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
