/* Custom Color Scheme - Electron Graphics */

:root {
    /* Primary Colors */
    --primary: #0F2854;
    /* Deep Navy Blue */
    --primary-dark: #0A1D3E;
    /* Darker Navy */
    --primary-light: #1A3A6B;
    /* Lighter Navy */

    /* Accent Colors */
    --accent: #D8C9A7;
    /* Warm Beige/Gold */
    --accent-dark: #C4B593;
    /* Darker Beige */
    --accent-light: #E8DCC3;
    /* Lighter Beige */

    /* Neutral Colors */
    --background: #EEEEEE;
    /* Light Gray Background */
    --white: #FFFFFF;
    --light: #F5F5F5;
    --dark: #0F2854;
    /* Same as primary */

    /* Text Colors */
    --text: #0F2854;
    /* Dark navy for text */
    --text-light: #5A6C8A;
    /* Muted navy */
    --text-on-dark: #FFFFFF;
    /* White text on dark backgrounds */

    /* Utility Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Borders & Shadows */
    --border: #D8C9A7;
    --shadow: rgba(15, 40, 84, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text) !important;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    height: 100%;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem;
}

/* Service Cards */
/* Service Cards */
.service-card .service-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-card .service-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: 14px;
    }
}

/* Mobile Service Card Styling (Horizontal List) */
@media (max-width: 767.98px) {
    .service-card .card-body {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 1rem !important;
    }

    .service-card .service-icon {
        margin: 0 1rem 0 0;
        /* Margin right instead of bottom */
        width: 45px;
        /* Slightly smaller for compactness */
        height: 45px;
        min-width: 45px;
        box-shadow: none;
        /* Cleaner look */
    }

    .service-card h6.card-title {
        margin-bottom: 0;
        font-size: 1rem;
        flex-grow: 1;
        /* Take up available space */
    }

    .service-card .card-text {
        display: none !important;
        /* Hide description on mobile to keep it clean */
    }

    .service-card .btn {
        display: none;
        /* Hide the big button, maybe replace with a chevron if needed, but the card is clickable */
    }

    /* Add a chevron to indicate interactiveness */
    .service-card .card-body::after {
        content: '\f054';
        /* FontAwesome chevron-right */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        color: #ddd;
        font-size: 0.9rem;
    }
}

.service-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Portfolio */
.portfolio-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 16px 16px 0 0;
}

/* Ensure carousel arrows are always visible and styled nicely */
.portfolio-image-container .carousel-control-prev,
.portfolio-image-container .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image-container:hover .carousel-control-prev,
.portfolio-image-container:hover .carousel-control-next {
    opacity: 1;
}

.portfolio-image-container .carousel-control-prev-icon,
.portfolio-image-container .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50% 50%;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* FAQ Accordion */
.custom-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: white;
    color: var(--dark);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: var(--primary);
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}

.custom-accordion .accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
}

.cta-card h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 700;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-image {
        max-width: 300px;
        margin-top: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
}

.shadow-lg {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1) !important;
}

.rounded-4 {
    border-radius: 16px !important;
}

.bg-light {
    background: #f8fafc !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.text-blue {
    color: #2563eb !important;
}

/* Hero Carousel */
.hero-carousel {
    max-width: 600px;
    margin: 0 auto;
}

.hero-carousel .carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

.hero-carousel .carousel-item img {
    height: 450px;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    bottom: 2rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* Info Tiles */
.info-tile {
    transition: all 0.3s ease;
}

.info-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.info-tile h4 {
    font-size: 2rem;
    color: var(--primary);
}

/* Service Image Sizing */
.service-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 16px 16px 0 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Package Comparison */
.package-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.package-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
}

.package-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}


/* Service card image sizing */
/* Service card image sizing - Removed duplicate/conflicting styles */

/* Backdrop blur for info tiles */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Preload optimization */
img {
    loading: eager;
}

/* Service card equal height */
.service-card .card-body {
    display: flex;
    flex-direction: column;
}

.service-card .d-grid {
    margin-top: auto;
}

/* Text Truncation Helpers */
/* Mobile Header Alignment Fix */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: nowrap !important;
    }

    .navbar-brand {
        font-size: 1.25rem;
        /* Slightly smaller on mobile */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80%;
        /* Leave space for toggler */
    }

    .navbar-brand img {
        height: 32px !important;
        /* Smaller logo */
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        margin-left: 10px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bottom-nav-item i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    /* Adjust existing sections for mobile */
    .section-title h2 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    /* Improve card display on mobile */
    .card {
        border-radius: 20px;
        /* Softer, more app-like */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        border: none;
    }

    .shadow-sm,
    .shadow {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }

    /* Horizontal scroll containers for cards (optional, if needed) */
    .scrolling-wrapper-flexbox {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 10px;
        margin: 0 -15px;
        /* Negative margin to span full width */
        padding: 0 15px 10px;
        /* Padding to align content */
    }

    .scrolling-wrapper-flexbox::-webkit-scrollbar {
        display: none;
    }

    .scrolling-wrapper-flexbox .card {
        flex: 0 0 auto;
        width: 85%;
        /* slightly peep next card */
    }
}