:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.navbar {
    z-index: 1030;
    background-color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Logo Styles */
.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 40px;
}

.navbar-brand {
    text-decoration: none !important;
    padding: 0;
    margin-right: 0;
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.brand-tagline {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: -2px;
}

/* Navigation Links */
.navbar-nav {
    gap: 10px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057 !important;
    padding: 12px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(44, 90, 160, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(44, 90, 160, 0.15);
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px 0;
    margin-top: 8px;
    min-width: 280px;
}

.dropdown-header {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    margin-bottom: 8px;
}

.dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: rgba(44, 90, 160, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 10px 20px;
    border-top: 1px solid #e9ecef;
}

/* Contact Info in Header */
.contact-info {
    text-align: right;
    margin-right: 15px;
}

.phone-number {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.service-hours {
    font-size: 0.8rem;
    line-height: 1;
}

/* Call Button */
.btn-call {
    background: linear-gradient(135deg, var(--accent-color), #218838);
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: linear-gradient(135deg, #218838, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-call:active {
    transform: translateY(0);
}

/* Mobile Styles */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    background-color: rgba(44, 90, 160, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 90, 160, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 20px;
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-radius: 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .navbar-actions {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
        justify-content: center !important;
    }
    
    .contact-info {
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin: 0;
        padding: 0;
    }
    
    .dropdown-item {
        padding-left: 40px;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .btn-call {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Hero Section - Corporate Design */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3c72 100%);
    color: white;
    padding: 20px 0 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Badge */
.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Hero Features List */
.hero-features-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* Hero Action Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-color), #218838);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-hero-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-hero-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-text small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Quick Services */
.quick-services .btn {
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Technician Image */
.hero-technician {
    position: relative;
    text-align: center;
    height: 600px;
}

.technician-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 80px;
    left: -50px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 250px;
    right: -60px;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 100px;
    left: -30px;
    animation-delay: 2s;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-color);
}

.card-content i {
    font-size: 1.5rem;
}

.card-content div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.card-content strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-content small {
    font-size: 0.8rem;
    color: #6c757d;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mobile Background Technician */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-technician-mobile {
    display: none;
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 300px;
    height: 400px;
    background: url('assets/images/technician-hero.png') no-repeat center bottom;
    background-size: contain;
    opacity: 0.15;
    z-index: 1;
}

/* Trust Indicators */
.trust-indicators {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 60px;
}

.trust-item {
    text-align: center;
    padding: 15px;
}

.trust-item i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.trust-item small {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-technician-mobile {
        display: block;
    }
    
    .hero-text-content {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .trust-item {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .trust-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-features-list {
        padding: 15px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .floating-card {
        display: none;
    }
}

/* Service Cards with Images */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.8), rgba(40, 167, 69, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon-overlay {
    font-size: 3rem;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.stats-section {
    background: var(--secondary-color);
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    height: 100%;
}

.phone-cta {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-cta:hover {
    background: #218838;
    color: white;
    transform: scale(1.05);
}

.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    color: var(--dark-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.contact-info {
    background: var(--dark-color);
    color: white;
    padding: 60px 0;
}

.footer {
    background: #212529;
    color: white;
    padding: 40px 0 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

.breadcrumb {
    background: var(--secondary-color);
    padding: 20px 0;
}

.service-detail-card {
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 10px 10px 0;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), #1e3c72);
    color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Page specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #1e3c72);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-image-container {
        height: 150px;
    }
    
    .error-number {
        font-size: 4rem;
    }
}

/* Fix for sticky sidebar overlapping header */
.sticky-top {
    z-index: 1020;
}

.navbar {
    z-index: 1030;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    top:0!important;
}

/* Ensure sidebar doesn't overlap header on mobile */
@media (max-width: 991px) {
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}
    .phone-cta {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .service-detail-card {
        padding: 20px;
    }
}