/********** Template CSS **********/
:root {
    /* Refined theme with dark blue - no orange */
    --primary: #1e3a8a; /* dark blue */
    --secondary: #2a2a2a; /* dark gray */
    --accent: #666666; /* gray accent instead of orange */
    --light: #1a1a1a; /* dark background */
    --dark: #0a0a0a; /* very dark */
    --metal: #444444; /* metallic gray */
    --metal-light: #666666; /* lighter metallic */
    --metal-dark: #222222; /* darker metallic */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
    --gradient-secondary: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --gradient-accent: linear-gradient(135deg, #666666 0%, #555555 50%, #444444 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-light: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #3a3a3a 100%);
    --gradient-metal: linear-gradient(145deg, #444 0%, #333 50%, #222 100%);
    --shadow-glow: 0 0 20px rgba(30, 58, 138, 0.3);
    --shadow-glow-dark: 0 0 20px rgba(0, 0, 0, 0.5);
    --shadow-glow-gray: 0 0 20px rgba(102, 102, 102, 0.3);

    /* Override Bootstrap v5 palette to match refined theme */
    --bs-primary: #1e3a8a;
    --bs-secondary: #2a2a2a;
    --bs-light: #1a1a1a;
    --bs-dark: #0a0a0a;
}

/* Global theme */
body {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #f0f0f0 100%);
    color: #666666;
    font-family: 'Open Sans', sans-serif;
}

a {
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Gradient gray header and footer */
.bg-dark {
    background: linear-gradient(135deg, #2c2c2c 0%, #404040 50%, #5a5a5a 100%) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.navbar-dark .navbar-brand .text-primary {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-dark .navbar-brand .text-secondary {
    color: #cccccc !important;
    text-shadow: 0 0 10px rgba(204, 204, 204, 0.3);
}

/* Fixed estimate card styling */
.estimate-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 20px 0;
}

.estimate-card .form-label {
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.estimate-card .form-control,
.estimate-card .form-select {
    background: #ffffff !important;
    border: 1px solid #d0d0d0;
    color: #333333 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    display: block;
    outline: none;
    position: relative;
    z-index: 1;
}

.estimate-card .form-control::placeholder {
    color: #999999;
    font-weight: 400;
    opacity: 1;
}

.estimate-card .form-control:focus,
.estimate-card .form-select:focus {
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
    background: #ffffff !important;
    color: #333333 !important;
    transform: none;
}

.estimate-card textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: 2px solid var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    border-color: var(--secondary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: 2px solid var(--secondary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow-dark);
}

.btn-secondary:hover {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow-gray);
    transform: translateY(-3px);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

.hero-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7), rgba(42, 42, 42, 0.8), rgba(102, 102, 102, 0.5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    transition: all 0.5s ease;
    z-index: -1;
    background: var(--gradient-primary);
}

.service-item div:hover::after {
    width: 100%;
    box-shadow: var(--shadow-glow);
}

.service-item * {
    transition: all 0.5s ease;
}

.service-item:hover * {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.service-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.bg-offer {
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.7), rgba(42, 42, 42, 0.8), rgba(30, 58, 138, 0.5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.bg-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer-reverse 4s infinite;
}

@keyframes shimmer-reverse {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}

/* Enhanced card styling */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        transparent 20%, 
        rgba(0, 212, 255, 0.05) 40%, 
        transparent 60%, 
        rgba(0, 212, 255, 0.1) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}

/* Light section styling with text highlighting */
.bg-light {
    background: #ffffff !important;
    border: 1px solid #eeeeee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bg-primary {
    background: #f8f9fa !important;
    color: #333333 !important;
    border: 1px solid #e9ecef;
}

.bg-secondary {
    background: #e9ecef !important;
    color: #333333 !important;
    border: 1px solid #dee2e6;
}

/* Low contrast text styling */
.text-primary {
    color: #333333 !important;
    font-weight: 500;
    position: relative;
}

.text-primary::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #cccccc;
    border-radius: 1px;
}

.text-secondary {
    color: #888888 !important;
    font-weight: 400;
}

/* Low contrast heading styles */
h1, h2, h3, h4, h5, h6 {
    color: #333333;
    font-weight: 500;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    color: #222222;
    font-weight: 600;
    position: relative;
}

.display-1::after, .display-2::after, .display-3::after, .display-4::after, .display-5::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dddddd;
    border-radius: 1px;
}

/* Futuristic icon styling */
.bi {
    transition: all 0.3s ease;
}

.bi:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--primary));
}

/* Fixed form styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
    font-weight: 400;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    display: block;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-control:focus {
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
    background: #ffffff !important;
    color: #333333 !important;
    transform: none;
}

.form-control::placeholder {
    color: #999999;
    font-weight: 400;
    opacity: 1;
}

.form-control:disabled {
    background: #f5f5f5 !important;
    color: #666666 !important;
    cursor: not-allowed;
}

/* Form select styling */
.form-select {
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
    font-weight: 400;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    display: block;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-select:focus {
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.1);
    background: #ffffff !important;
    color: #333333 !important;
}

/* Textarea styling */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form group spacing */
.form-group {
    margin-bottom: 20px;
}

/* Form label styling */
.form-label {
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Gradient gray navbar styling */
.navbar {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #2c2c2c 0%, #404040 50%, #5a5a5a 100%) !important;
    border-bottom: 1px solid #666666;
}

/* Gradient gray footer styling */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #404040 50%, #5a5a5a 100%) !important;
    border-top: 1px solid #666666;
}

/* Futuristic carousel styling */
.carousel-indicators [data-bs-target] {
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: var(--accent);
    box-shadow: var(--shadow-glow-gray);
}

/* Futuristic testimonial styling */
.testimonial-carousel .owl-dot {
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-dot.active {
    background: var(--accent);
    box-shadow: var(--shadow-glow-gray);
}

/* Futuristic blog date styling */
.blog-date {
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

/* Futuristic back to top button */
.back-to-top {
    background: var(--gradient-primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--gradient-accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow-gray);
    transform: translateY(-5px);
}

/* Futuristic animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Futuristic hover effects for links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Enhanced section headers */
.display-5 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Futuristic pricing cards */
.pricing-item {
    background: var(--gradient-light);
    border: 2px solid transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-item:hover::before {
    opacity: 1;
}

.pricing-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Metallic team member cards */
.team-item {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.team-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 20%, 
        rgba(255, 255, 255, 0.05) 40%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-item:hover::before {
    opacity: 1;
}

.team-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.team-item img {
    transition: all 0.4s ease;
    filter: contrast(1.1) brightness(0.9);
}

.team-item:hover img {
    transform: scale(1.05);
    filter: contrast(1.2) brightness(1.1) saturate(1.1);
}

/* Metallic team text styling */
.team-item .team-text {
    background: linear-gradient(145deg, #1e1e1e, #2d2d2d);
    border-top: 1px solid #444;
    color: #e0e0e0;
    padding: 20px;
}

.team-item .team-text h4 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: 600;
}

.team-item .team-text p {
    color: #b0b0b0;
    font-weight: 400;
}

.team-item:hover .team-text h4 {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.team-item:hover .team-text p {
    color: #d0d0d0;
}

/* Metallic team social icons */
.team-item .team-social {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-top: 1px solid #333;
    padding: 15px;
}

.team-item .team-social a {
    background: linear-gradient(145deg, #333, #444);
    border: 1px solid #555;
    color: #888;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.team-item .team-social a:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 
        0 0 15px var(--primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Futuristic contact form styling */
.contact-form {
    background: var(--gradient-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-glow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

/* Futuristic map container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--primary);
}

/* Refined social media buttons */
.btn-lg-square {
    background: var(--gradient-metal);
    border: 2px solid var(--metal);
    box-shadow: var(--shadow-glow-dark);
    transition: all 0.3s ease;
}

.btn-lg-square:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px) rotate(360deg);
}

/* Futuristic loading animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Refined scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gradient-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-metal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Futuristic selection */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}