/* General Styles */
:root {
    --primary-color: #1a5490;
    --secondary-color: #0d3d6b;
    --accent-color: #2c74b3;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
    --blue-main: #1a5490;
    --blue-dark: #0d3d6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Info Bar */
.top-info-bar {
    background: var(--blue-main);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
}

.top-info-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-info-bar a:hover {
    opacity: 0.8;
}

.top-info-bar i {
    margin-right: 5px;
}

/* Mobile contact info - shows below navbar on small screens */
.mobile-contact-info {
    display: none;
    background: var(--light-color);
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--blue-main);
}

.mobile-contact-info a {
    color: var(--dark-color);
    text-decoration: none;
    margin: 0 10px;
}

.mobile-contact-info i {
    color: var(--blue-main);
    margin-right: 5px;
}

@media (max-width: 992px) {
    .mobile-contact-info {
        display: block;
    }
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar.main-nav {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 40px !important;
    background: white !important;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue-main) !important;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.5rem;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    animation: none !important;
    image-rendering: -webkit-optimize-contrast;
}

.navbar-brand img {
    filter: none;
}

.navbar-light .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
    color: var(--blue-main) !important;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.9) !important;
}

.navbar-dark .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-dark) 100%);
    background-attachment: fixed;
    padding-top: 140px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}

.hero-section h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.hero-section h2 {
    animation: fadeInDown 1.2s ease;
}

.hero-section .lead {
    font-size: 1.5rem;
    animation: fadeInUp 1.4s ease;
}

.hero-logo-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    animation: fadeInDown 0.8s ease;
}

.hero-features {
    animation: fadeInUp 1.6s ease;
}

.feature-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.feature-badge p {
    margin: 0;
    font-weight: 600;
}

/* Hero Rating */
.hero-rating {
    animation: fadeInUp 1.8s ease;
}

.rating-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.rating-stars-hero {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.rating-text-hero {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--blue-main);
}

/* About Section */
#about {
    padding: 80px 0;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-content .lead {
    color: var(--blue-main);
    font-weight: 600;
}

/* Service Cards */
.service-card, .advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.service-card:hover, .advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon, .advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h3, .advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.testimonial-rating {
    font-size: 1.2rem;
}

.testimonial-text {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    border-top: 2px solid var(--light-color);
    padding-top: 1rem;
    margin-top: auto;
}

.testimonial-author strong {
    color: var(--blue-main);
    font-size: 1.1rem;
}

.rating-stars {
    font-size: 1.5rem;
}

/* Gallery Section */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* Uniform image sizing for bath renovation detail page */
.baeder-uniform-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
}

/* Offer Section */
.offer-box {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.offer-item {
    text-align: center;
    padding: 1.5rem;
}

.offer-item i {
    color: var(--blue-main);
}

.offer-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--blue-dark) 100%);
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.contact-item i {
    color: var(--accent-color);
}

.contact-item a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-color) !important;
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-form-wrapper .form-control {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 0.75rem;
}

.contact-form-wrapper .form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(26, 84, 144, 0.25);
}

.contact-form-wrapper label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Google Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-container iframe {
    display: block;
}

.btn-light {
    background: white;
    color: var(--blue-main);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--light-color);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: var(--blue-main);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 84, 144, 0.3);
}

/* Footer */
footer {
    background: #000 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--blue-main);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-5px);
}

.scroll-top-btn.show {
    display: flex;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hide top info bar on tablets and mobile */
    .top-info-bar {
        display: none;
    }
    
    /* Adjust main nav position when top bar is hidden */
    .navbar.main-nav {
        top: 0 !important;
    }
    
    /* Adjust hero section padding */
    .hero-section {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .feature-badge {
        margin-bottom: 1rem;
    }
    
    /* Stack top info bar items vertically on very small screens */
    .top-info-bar .row > div {
        text-align: center !important;
        padding: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .offer-box {
        padding: 1.5rem;
    }
    
    .gallery-card {
        height: 250px;
    }

    .baeder-uniform-image {
        height: 240px;
    }
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}
