/* style.css - Custom styles for Urban Star website */

/* Color Scheme */
:root {
    --navy: #001f3f;
    --green: #28a745;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --soothing-blue: #e6f0fa; /* Soothing light blue for alternate sections */
    --soothing-mint: #e0f7ef; /* Soothing mint for alternate sections */
    --dark-gray: #343a40;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navigation */
.bg-navy {
    background: linear-gradient(90deg, #ffffff, #ffffff) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-logo-placeholder {
    max-width: 150px;
}

.navbar-logo-placeholder img {
    max-height: 50px;
    object-fit: contain;
}

.navbar-brand {
    font-weight: 900;
    font-size: 0; /* Hide text */
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-highlight {
    color: var(--green);
}

.nav-link {
    color: black !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--green);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    background-color: var(--navy);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: var(--white);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--green);
}

/* Hero Banner */
.hero-banner {
    height: 90vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7));
    z-index: -1;
}

.hero-banner h1 {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Alternating Section Backgrounds */
.section-alternate:nth-of-type(odd) {
    background-color: var(--soothing-blue);
}

.section-alternate:nth-of-type(even) {
    background-color: var(--soothing-mint);
}

/* Buttons */
.btn-green {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-green::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 ease;
}

.btn-green:hover::before {
    left: 100%;
}

.btn-green:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-green {
    border-color: var(--green);
    color: var(--green);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-outline-green:hover::before {
    left: 100%;
}

.btn-outline-green:hover {
    background-color: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Cards */
.service-card {
    border: 2px solid var(--green);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-weight: 700;
    color: var(--navy);
}

.text-green {
    color: var(--green);
}

/* Carousel */
.carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    height: 500px;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .card-text {
    font-style: italic;
    color: var(--dark-gray);
}

/* Why Choose Us */
#why-choose-us .card {
    border: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#why-choose-us .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

#why-choose-us .card-body {
    padding: 2rem;
}

#why-choose-us .fa-3x {
    color: var(--green);
    margin-bottom: 1rem;
}

/* FAQs Accordion */
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--light-gray);
}

.accordion-button {
    background-color: var(--white);
    color: var(--navy);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--green);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: var(--white);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--navy), #002a5c);
}

.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--green);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icon:hover {
    color: var(--green) !important;
    transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    background-color: #218838;
    transform: scale(1.1);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

.animate__pulse {
    animation-duration: 2s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .navbar-logo-placeholder {
        max-width: 100px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}