/**
 * Voltura Electrical & Infrastructure
 * Custom Stylesheet
 */

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #4a9bc4;
    --dark-color: #0d4a5f;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--dark-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 74, 95, 0.85) 0%, rgba(26, 95, 122, 0.85) 100%),
                url('../images/hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0d4a5f 0%, #1a5f7a 100%);
    margin-top: -76px;
    padding-top: 120px !important;
}

/* Service Cards */
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    border: 2px solid #ced4da;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon-badge {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon-badge {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.3);
}

.service-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card {
    border: 2px solid #ced4da !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color) !important;
    border-width: 2px;
}

/* Feature Box */
.feature-box {
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Client Logos */
.client-logo {
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

.client-logo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Vision Items */
.vision-item {
    transition: transform 0.3s ease;
    text-align: center;
}

.vision-item:hover {
    transform: translateY(-5px);
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 700;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 15px rgba(0,0,0,0.4);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 8px;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d4a5f, #1a5f7a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #5ba8c9);
    border: none;
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #5ba8c9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 155, 196, 0.3);
    color: #fff;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 122, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

footer i {
    color: #ffffff;
    font-size: 1rem;
    display: inline-block;
}

footer .fas,
footer .fab {
    color: #ffffff !important;
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Service Category */
.service-category {
    border-radius: 10px;
    padding: 2rem 0;
}

/* Leader Avatar */
.leader-avatar {
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .page-header {
        padding-top: 100px !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
}

/* Table */
.table {
    border-radius: 5px;
    overflow: hidden;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Contact Form */
#contactForm {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Bootstrap Component Overrides for Teal Theme */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Override Bootstrap's default primary button */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0d4a5f !important;
    border-color: #0d4a5f !important;
}

/* Override Bootstrap's default secondary button */
.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #3a8bb4 !important;
    border-color: #3a8bb4 !important;
}

/* Override Bootstrap's default link color */
a {
    color: var(--primary-color);
}

a:hover {
    color: #0d4a5f;
}

/* Override Bootstrap's default border-primary */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* Foundation Section */
.foundation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.foundation-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.foundation-carousel .carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.foundation-carousel .carousel-item:hover img {
    transform: scale(1.05);
}

.foundation-carousel .carousel-control-prev,
.foundation-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 95, 122, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.foundation-carousel .carousel-control-prev {
    left: 20px;
}

.foundation-carousel .carousel-control-next {
    right: 20px;
}

.foundation-carousel .carousel-control-prev:hover,
.foundation-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

.foundation-carousel .carousel-indicators {
    bottom: 20px;
}

.foundation-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
}

.foundation-carousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.foundation-content {
    animation: fadeIn 0.8s ease-out;
}

.foundation-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(26, 95, 122, 0.1);
    border-radius: 25px;
}

.foundation-timeline {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.foundation-description p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.foundation-highlight {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foundation-highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.foundation-highlight h5 {
    font-weight: 600;
}

.foundation-highlight p {
    margin-bottom: 0.75rem;
}

/* Responsive adjustments for foundation section */
@media (max-width: 992px) {
    .foundation-carousel .carousel-item img {
        height: 350px;
    }
    
    .foundation-content {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .foundation-carousel .carousel-item img {
        height: 300px;
    }
    
    .foundation-carousel .carousel-control-prev,
    .foundation-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .foundation-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .foundation-carousel .carousel-control-next {
        right: 10px;
    }
}
