/* TotalENC Custom Styles */

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0056b3;
    transition: all 0.3s ease;
}

a:hover {
    color: #003d7a;
    text-decoration: none;
}

/* Header Styles */
.navbar-brand img {
    max-height: 50px;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #0056b3;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    transform: translateY(-10px);
}

.project-overlay h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Testimonial Cards */
.testimonial-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #0056b3;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.client-position {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Cards */
.blog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background-color: #0056b3;
}

/* Contact Section */
.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #0056b3;
    margin-right: 1rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,86,179,0.1);
    border-radius: 50%;
}

.contact-info-item div {
    flex-grow: 1;
}

.contact-info-item h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #172b4d;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: #fff;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: #fff;
}

.social-icons a:hover {
    background-color: #0056b3;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background-color: #0056b3;
    color: #fff;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a:hover {
    color: #fff;
}

/* Page Content */
.content-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
}

/* Page Sections */
.page-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-section h2 {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-section .section-subtitle {
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.page-section .section-image {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-section .section-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-section .section-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-section .section-button {
    position: relative;
    z-index: 2;
}

/* Background image sections */
.page-section[style*="background-image"] {
    color: #fff;
    padding: 5rem 2rem;
}

.page-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 80px 0;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 60px 0;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .page-section {
        padding: 1.5rem;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: #f8f9fa;
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0,86,179,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: #0056b3;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.location-info, .contact-detail {
    position: relative;
    padding-left: 0;
}

.hours-detail {
    font-size: 0.95rem;
}
