/* Modern CSS with Custom properties supporting dynamic theme colors */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Fallback default colors, overridden dynamically in Site.Master */
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --footer-bg: #0f172a;
    --menu-bg: #1e293b;
    --font-family: 'Outfit', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-family);
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1e293b;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Navbar */
.navbar-custom {
    background-color: var(--menu-bg) !important;
    transition: all 0.3s ease;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--menu-text-color) !important;
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    color: var(--menu-text-muted) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item.show .nav-link {
    color: var(--menu-text-color) !important;
    background-color: var(--menu-text-hover) !important;
}

.navbar-custom .dropdown-menu {
    background-color: var(--menu-bg);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 10px;
}

.navbar-custom .dropdown-item {
    color: var(--menu-text-muted) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--menu-text-hover) !important;
    color: var(--menu-text-color) !important;
}

/* Hero Carousel */
.hero-carousel .carousel-item {
    height: 55vh;
    min-height: 350px;
    background-color: #0b0f19;
}

.hero-carousel img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 1 !important; /* Full brightness for custom design banners */
}

.hero-caption {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 620px;
    margin: 0 auto 30px auto;
    box-shadow: var(--shadow-lg);
}

.hero-caption h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #fff;
}

/* Premium Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Card glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Section Header */
.section-title-wrapper {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Info Float Widget */
.floating-widgets {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-call {
    background-color: var(--primary-color);
}

.btn-inquiry {
    background: linear-gradient(135deg, var(--secondary-color), #0891b2);
}

/* Footer */
.footer-custom {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

.footer-custom h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    font-size: 0.85rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Testimonial slider */
.testimonial-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.testimonial-card img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

/* Blog styles */
.blog-card {
    border: none;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-card img {
    height: 220px;
    object-fit: cover;
}

/* Inquiry form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.15);
}

/* Responsive container width adjustments to reduce empty space on sides */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1180px !important;
    }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1380px !important;
    }
}
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1560px !important;
    }
}

/* Mobile optimizations for containers and grids */
@media (max-width: 576px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Modal responsive adjustments */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    .modal-content {
        border-radius: 12px !important;
    }
    .modal-body {
        padding: 20px 15px !important;
    }
    /* Grid gap adjustments on mobile */
    .row.g-4, .row.g-5 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
    /* Section padding on mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .display-5 {
        font-size: 2rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Slider Mobile View Optimizations */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 35vh !important;
        min-height: 240px !important;
    }
    .hero-carousel img {
        height: 100% !important;
        object-fit: contain !important;
        background-color: #0b0f19 !important;
    }
    .hero-caption {
        padding: 20px !important;
        margin: 10px !important;
        max-width: 90% !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    .hero-caption h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }
    .hero-caption p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }
    .hero-caption .btn {
        padding: 8px 18px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-item {
        height: 25vh !important;
        min-height: 160px !important;
    }
    .hero-caption {
        padding: 10px 15px !important;
        margin: 5px !important;
        max-width: 95% !important;
        background: rgba(0, 0, 0, 0.65) !important;
    }
    .hero-caption h1 {
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }
    .hero-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
    .hero-caption .btn {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        margin-bottom: 0px !important;
    }
}

