:root {
    --orange: #F44A22;
    --silver: #FEF8E8;
    --grey: #E4E2E3;
    --midnight: #161616;
    --stone: #A8AAAC;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--midnight);
    overflow-x: hidden;
    background-color: var(--silver);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar {
    background-color: var(--midnight);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--silver) !important;
}

.nav-link {
    color: rgba(254, 248, 232, 0.85) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange) !important;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    background-color: var(--midnight);
    border: 1px solid rgba(254, 248, 232, 0.1);
    border-radius: 8px;
}

.navbar .dropdown-item {
    color: rgba(254, 248, 232, 0.85);
    padding: 8px 16px;
    transition: all 0.3s;
}

.navbar .dropdown-item:hover {
    background-color: var(--orange);
    color: white;
}

.navbar .dropdown-divider {
    border-color: rgba(254, 248, 232, 0.1);
}

.navbar .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

.hero-section {
    background: linear-gradient(rgba(22, 22, 22, 0.8), rgba(22, 22, 22, 0.8)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: var(--silver);
    padding: 150px 0 100px;
    text-align: center;
}

.btn-primary {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #e03912;
    border-color: #e03912;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border-color: var(--orange);
    color: var(--orange);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 60px;
    height: 3px;
    background-color: var(--orange);
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    border: none;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(22, 22, 22, 0.9), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(-5px);
}

.project-meta {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.badge.bg-orange {
    background-color: var(--orange) !important;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 15px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--orange);
}

.stats {
    background-color: var(--midnight);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--silver);
    margin-bottom: 0;
}

.stats-text {
    color: var(--silver);
    font-weight: 500;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--orange);
    margin-right: 15px;
}

footer {
    background-color: var(--midnight);
    color: var(--silver);
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--orange);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    color: rgba(254, 248, 232, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--orange);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(254, 248, 232, 0.1);
    border-radius: 50%;
    color: var(--silver);
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--orange);
    color: var(--midnight);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(254, 248, 232, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Project Filter Styles */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.project-filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--midnight);
    transition: all 0.3s;
    border-radius: 30px;
}

.project-filter-btn.active, 
.project-filter-btn:hover {
    background-color: var(--orange);
    color: white;
}

.bg-light-custom {
    background-color: var(--grey);
}

.text-orange {
    color: var(--orange);
}

/* Projects Page Specific Styles */
.page-header {
    background-color: var(--midnight);
    color: var(--silver);
    margin-top: 76px;
}

.projects-section {
    background-color: var(--silver);
}

.cta-section {
    background-color: var(--midnight);
    color: var(--silver);
}

.bg-midnight {
    background-color: var(--midnight);
}

.text-silver {
    color: var(--silver);
}

.page-item.active .page-link {
    background-color: var(--orange);
    border-color: var(--orange);
}

.page-link {
    color: var(--midnight);
}

.page-link:hover {
    color: var(--orange);
}

/* Single Project Page Styles */
.project-header {
    background-color: var(--midnight);
    color: var(--silver);
    margin-top: 76px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--silver);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--orange);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--silver);
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--silver);
}

.project-gallery {
    background-color: var(--silver);
}

.gallery-thumb {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: scale(1.03);
}

.project-info-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.project-info-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.project-info-item p {
    margin-bottom: 0;
    color: var(--midnight);
}

.accordion-button:not(.collapsed) {
    background-color: var(--orange);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--orange);
}

.related-projects {
    background-color: var(--silver);
}

/* Modal Styles */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-header {
    border: none;
    padding: 1rem 1rem 0;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* 404 Error Page Styles */
.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--midnight);
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--midnight);
}

.construction-icon {
    font-size: 6rem;
    color: var(--orange);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.quick-links {
    margin-top: 40px;
}

.quick-links h4 {
    margin-bottom: 20px;
    color: var(--midnight);
}

.quick-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.quick-links-list li {
    margin-bottom: 10px;
}

.quick-links-list a {
    color: var(--midnight);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.quick-links-list a:hover {
    color: var(--orange);
}

.quick-links-list i {
    margin-right: 8px;
    color: var(--orange);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background-color: transparent;
        border: none;
        padding-left: 20px;
    }
    
    .navbar .dropdown-item {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .meta-item {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .construction-icon {
        font-size: 4rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .quick-links-list {
        flex-direction: column;
        align-items: center;
    }
}