/*
 * Construction Website CSS
 * Color Scheme based on Canopy Planning
 */

:root {
    /* Primary Colors */
    --primary-dark: #001B4C;
    --primary-blue: #3B4395;
    --primary-orange: #F7931D;
    --light-bg: #f0f4fb;
    --text-color: #495057;
    --secondary-text: #6c757d;

    /* Additional Colors */
    --white: #ffffff;
    --dark: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue) !important;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e67e0d;
    border-color: #e67e0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(247, 147, 29, 0.3);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 600px;
}

.hero-carousel .carousel-item {
    height: 600px;
    position: relative;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 27, 76, 0.8), rgba(0, 27, 76, 0.3));
    z-index: 1;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    text-align: left;
    left: 10%;
    right: 10%;
    bottom: 30%;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-carousel .carousel-caption p {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero-carousel .carousel-caption .btn {
    animation: fadeInUp 1.4s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 1.5rem auto 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 27, 76, 0.1);
    border-color: var(--primary-orange);
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-top: auto;
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 27, 76, 0.9), rgba(0, 27, 76, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--white);
    margin-bottom: 0;
}

.portfolio-overlay .badge {
    background-color: var(--primary-orange);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 1rem;
    text-align: center;
}

.testimonial-card .customer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-orange);
}

.testimonial-card .stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-card .review {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.testimonial-card .customer-name {
    font-weight: 600;
    color: var(--primary-dark);
}

.testimonial-card .project-type {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Team Cards */
.team-card {
    text-align: center;
    margin-bottom: 2rem;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 5px solid var(--light-bg);
    transition: all 0.3s ease;
}

.team-card:hover img {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-card .position {
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card .license {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .category {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-card h5 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-card .meta {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(247, 147, 29, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--light-bg);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-card .icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

/* Footer */
.footer {
    background-color: var(--dark);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-orange);
}

.footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-orange);
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
}

/* Admin Login Button (Floating) */
#adminLoginBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #212529;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0.7;
}

#adminLoginBtn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    opacity: 1;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-carousel {
        height: 400px;
    }

    .hero-carousel .carousel-item {
        height: 400px;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 300px;
    }

    .hero-carousel .carousel-item {
        height: 300px;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* Hover Effects */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Badge Styles */
.badge-primary {
    background-color: var(--primary-blue);
}

.badge-orange {
    background-color: var(--primary-orange);
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-orange);
}
