﻿        /*
 * Finxtra Consultancy Firm - Custom Styles
 * Professional, Clean, and Corporate Aesthetic
 */

:root {
    --primary-color: #004d99; /* Deep Blue - Corporate feel */
    --primary-dark: #003366;  /* Even darker for hover/active */
    --secondary-color: #f7931e; /* Orange/Gold - Accent color */
    --text-dark: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

/* Global Typography and Body */
body {
    font-family: 'Open Sans', sans-serif; /* Body text */
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Headings */
    font-weight: 700;
}

/* --- Top Info Bar --- */
.top-info-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
}

.top-info-bar .contact-info i {
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white);
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--secondary-color);
}


/* --- Header (Navigation) --- */
.sticky-header {
    background-color: var(--white);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo {
    height: 40px; /* Control logo size */
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 10px 0;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}


/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary-outline { /* Used for Hero section secondary button */
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-secondary-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary-dark {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-primary-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Hero Section (Carousel) --- */
.carousel-item {
    height: 80vh; /* Adjust height for impact */
    min-height: 400px;
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Dark overlay for text readability */
.hero-slide-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
}

.carousel-caption {
    bottom: unset; /* Remove default bottom alignment */
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption .badge {
    background-color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 6px 12px;
}

/* --- Section Styling --- */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
}


/* --- Services Section (service-card-v2) --- */

.service-card-v2 {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    text-align: left; /* Aligned text for better reading */
}

.service-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card-v2 .card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-v2 .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2); /* Slight dark wash over image */
}

.service-card-v2 .card-body {
    padding: 30px;
    position: relative;
}

.service-card-v2 .card-icon {
    position: absolute;
    top: -30px; /* Position icon above the body over the image */
    left: 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card-v2 .card-title {
    margin-top: 20px; /* Space after the icon's position */
    color: var(--primary-dark);
}

.service-card-v2 .card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}


/* --- Footer --- */
.footer-v2 {
    background-color: var(--primary-dark); /* Dark corporate color */
    color: var(--white);
}

.footer-v2 .footer-heading {
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-v2 p, .footer-v2 li {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-v2 .footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-v2 .footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Subtle hover effect */
}

.footer-v2 .footer-contact-info li {
    display: flex; /* For icon alignment */
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.footer-v2 .footer-contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-social-link {
    display: inline-block;
    color: var(--white);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-dark);
}

.footer-v2 hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries for Responsiveness */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link::after {
        display: none; /* Hide border under links on mobile */
    }
    .sticky-header .navbar-nav {
        padding: 10px 0;
    }
    .carousel-caption h1 {
        font-size: 2rem;
    }
}