/*
 * Custom CSS for AAB Website - Modern Professional Design
 */



/* Global Styles */
:root {
    --primary-color: #4e54c8; /* Modern indigo/purple */
    --primary-light: #8f94fb;
    --primary-dark: #373b98;
    --secondary-color: #ff6b6b; /* Vibrant coral */
    --secondary-light: #ff9a9e;
    --dark-color: #2c3e50; /* Dark blue slate */
    --light-color: #f8f9fa; /* Light grey */
    --text-color: #495057; /* Charcoal grey */
    --text-light: #6c757d; /* Medium grey */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-sm: 6px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --content-padding: 1.5rem;
    --sidebar-width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.75;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 16px; /* Base font size, 1rem */
}

/* Responsive Typography */
html {
    font-size: 100%; /* Base: 16px */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.35;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Header Styles */
header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .navbar-nav .nav-link {
    padding: 0.8rem 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

header .navbar-nav .nav-link:hover::after,
header .navbar-nav .nav-link.active::after {
    width: 100%;
}

header .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

header .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

header .navbar-brand .logo-text span {
    line-height: 1.2;
}

.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1);
    padding: .35rem .75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(78, 84, 200, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: var(--transition);
    width: 1.2em;
    height: 1.2em;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 84, 200, 0.25);
}

/* Responsive Adjustments */
@media (max-991px) {
    html {
        font-size: 93.75%; /* Base: 15px */
    }
    .navbar-collapse {
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem; 
    }
    header .navbar-nav .nav-link {
        padding: 0.7rem 0;
        text-align: center;
    }
    header .navbar-nav .nav-link::after {
        display: none;
    }
     header .navbar-nav .nav-link:hover {
        transform: none;
        background-color: rgba(78, 84, 200, 0.05);
    }
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        margin-top: 0.5rem;
        background-color: #f8f9fa;
        text-align: center;
    }
    .dropdown-item {
        padding: 0.8rem 1rem;
    }
    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

@media (max-767px) {
    html {
        font-size: 87.5%; /* Base: 14px */
    }
    body {
        line-height: 1.7;
    }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    header .navbar-brand .logo-text {
        font-size: 0.9rem;
    }
    header .navbar-brand .logo-icon {
        width: 40px;
        height: 40px;
    }
    header .navbar-brand .logo-icon span {
        font-size: 0.9rem;
    }
}

/* This media query should be placed after others to ensure its overrides apply correctly */
@media (min-width: 992px) {
    .section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-sm);
    animation: fadeInDown 0.3s ease-out;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(78, 84, 200, 0.05);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
}

/* Hero Section */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .display-4 {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-section img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    transition: var(--transition);
    transform: perspective(1200px) rotateY(-3deg) scale(0.98);
}

.hero-section:hover img {
    transform: perspective(1200px) rotateY(0deg) scale(1);
    box-shadow: 0 20px 55px rgba(0,0,0,0.2);
}

.hero-section .badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Badge styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: visible;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem 2rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-light);
    transition: var(--transition);
    transform: scale(1) rotate(0deg);
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.2);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.3);
}

.service-card .icon {
    font-size: 2.25rem;
    color: #fff;
    transition: var(--transition);
}

.service-card:hover .icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Button styles */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-width: 2px;
    letter-spacing: 0.5px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e05a5a;
    border-color: #e05a5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.2);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-light:hover {
    background-color: #f7f7f7;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-location {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-location:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

footer .social-icons {
    display: flex;
    gap: 0.5rem;
}

footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.copyright a {
    color: rgba(255,255,255,0.7);
}

.copyright a:hover {
    color: #fff;
}

.bg-darker {
    background-color: #1c2a38;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.back-to-top.active {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    transform: translateX(50px);
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New floating element animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* New rotating background for hero section */
.gradient-bg {
    background: linear-gradient(270deg, var(--primary-color), var(--primary-dark), var(--secondary-color));
    background-size: 600% 600%;
    animation: gradientBackground 15s ease infinite;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .card-body {
        padding: 1.5rem;
    }
    .card-footer {
        padding: 1.25rem 1.5rem;
    }
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Location page specific adjustments */
    section .row article {
        margin-bottom: 1.5rem;
    }
    html {
        font-size: 93.75%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .lead {
        font-size: 1.05rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-section {
        text-align: center;
    }
    
    /* Location page responsive styles */
    .order-0.order-lg-1 {
        margin-bottom: 1.5rem;
    }
    html {
        font-size: 87.5%;
    }
    body {
        line-height: 1.7;
    }
}

/* Location page specific styles to prevent overlapping */
.container > .row > .col-lg-4.order-0.order-lg-1 {
    margin-bottom: 2rem;
}

section.py-5:not(:first-of-type) {
    position: relative;
    clear: both;
    z-index: 1;
}

section.bg-light {
    position: relative;
    z-index: 0;
    clear: both;
    margin-top: 1rem;
    padding-top: 3rem !important;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Specific styles for Related Locations section to prevent overlap */
.related-locations-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 30px;
    overflow-x: hidden;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
}

@media (max-width: 992px) {
    section.py-5 {
        overflow: hidden;
        width: 100%;
    }
    
    section.py-5 .container {
        overflow: visible;
        position: relative;
    }
    
    section.bg-light {
        margin-top: 0;
    }
}

/* New testimonial slider styles */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial-card .stars {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-card .author-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.testimonial-card .author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-card .author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.swiper-pagination-bullet {
    background-color: var(--primary-light);
    opacity: 0.7;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* New process steps styles */
.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.process-step .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background-color: var(--primary-light);
}

/* Contact form styling */
.form-control {
    border-radius: var(--border-radius-sm);
    padding: 0.9rem 1.2rem;
    border: 1px solid #ced4da;
    transition: var(--transition);
    background-color: #fdfdff;
    height: auto;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(78, 84, 200, 0.2);
    background-color: #fff;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.2em;
}

.form-check-label {
    padding-left: 0.5em;
    font-size: 0.9rem;
}

/* Style for .is-invalid class to be more prominent */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

/* Custom section divider */
.section-divider {
    height: 100px;
    position: relative;
    margin: 4rem 0;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image hover effects */
.img-hover {
    transition: var(--transition);
    overflow: hidden;
}

.img-hover img {
    transition: var(--transition);
}

.img-hover:hover img {
    transform: scale(1.05);
}

/* Location page specific styles - Redesigned UI */
.location-hero {
    background-color: var(--primary-color);
    margin-top: -1.5rem;
    padding: 4rem 0;
    color: white;
    overflow: hidden;
}

.location-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    z-index: 0;
}

.location-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/pattern.svg');
    opacity: 0.1;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.location-image-container {
    position: relative;
    padding: 1rem;
    transform: perspective(800px) rotateY(-8deg);
    transition: transform 0.8s ease;
}

.location-image-container:hover {
    transform: perspective(800px) rotateY(0deg);
}

.location-image-container img {
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.location-image-container::before {
    content: '';
    position: absolute;
    top: 3rem;
    right: -1rem;
    bottom: -1rem;
    left: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* Content Cards */
.content-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(78, 84, 200, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: rotateY(360deg);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Advantages */
.why-choose-us {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    background-color: rgba(78, 84, 200, 0.03);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-item:hover {
    background-color: rgba(78, 84, 200, 0.07);
    transform: translateY(-5px);
}

.advantage-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.advantage-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    background-color: var(--primary-color);
}

.advantage-item:hover .advantage-icon i {
    color: white;
}

.advantage-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.advantage-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Sidebar */
.sidebar-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 60px;
    background-color: var(--primary-color);
    border-top-left-radius: var(--border-radius);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item a, .contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 0.5rem;
}

.services-list a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: rgba(78, 84, 200, 0.03);
}

.services-list a:hover {
    background-color: rgba(78, 84, 200, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.services-list i {
    width: 35px;
    height: 35px;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.services-list a:hover i {
    background-color: var(--primary-color);
    color: white;
}

/* Communes Section */
.communes-section {
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 2rem;
}

.badge-custom {
    display: inline-block;
    background-color: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 1rem;
}

.commune-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-bottom: 3px solid transparent;
}

.commune-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.commune-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.commune-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 5rem 0;
    overflow: hidden;
    margin-top: 4rem;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/pattern.svg');
    opacity: 0.1;
    z-index: 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #fff;
    clip-path: ellipse(50% 50% at 50% 50%);
    z-index: 1;
}

.cta-card {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    color: white;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .location-hero {
        padding: 2rem 0;
    }

    .service-card, .advantage-item, .commune-card {
        margin-bottom: 1rem;
    }

    .location-image-container {
        display: none;
    }
    
    .section-title, .sidebar-title {
        text-align: center;
    }

    .section-title::after, .sidebar-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sidebar-card::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
        border-radius: 0;
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
    }
}

@media (max-width: 768px) {
    .location-hero {
        padding: 3rem 0;
    }
    
    .service-icon, .advantage-icon {
        margin: 0 auto 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
}

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
}

    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-card {
        padding: 2rem;
}
}

/* Full Width Sections */
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Floating Call-to-Action Button */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
        opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    }

.floating-cta.active {
        opacity: 1;
        transform: translateY(0);
    pointer-events: all;
}

.floating-cta.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.floating-cta:hover {
    transform: translateY(-5px);
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    height: 60px;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    overflow: hidden;
    padding: 0 24px 0 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: translateZ(0) scale(1);
    position: relative;
}

.floating-cta-btn:hover, .floating-cta-btn:focus {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.floating-cta-btn i {
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.floating-cta-text {
    font-weight: 600;
    white-space: nowrap;
}

.cta-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
        opacity: 0;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.25;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.floating-cta-secondary {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 0;
        opacity: 0;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.floating-cta-secondary span {
    white-space: nowrap;
    font-weight: 500;
}

.floating-cta-secondary i {
    font-size: 16px;
    margin-right: 8px;
    }

.floating-cta:hover .floating-cta-secondary {
    height: 44px;
        opacity: 1;
    margin-top: 5px;
}

.floating-cta-secondary:hover {
    transform: translateX(5px);
    color: var(--primary-dark);
}

@media (max-width: 992px) {
    .floating-cta {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-cta-btn {
        height: 56px;
        padding: 0 16px 0 0;
    }
    
    .floating-cta-btn i {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .cta-pulse {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 16px;
        left: 16px;
    }
    
    .floating-cta-btn {
        height: 50px;
        width: 50px;
        padding: 0;
        border-radius: 50%;
    }
    
    .floating-cta-btn i {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-right: 0;
    }
    
    .cta-pulse {
        width: 50px;
        height: 50px;
    }
    
    .floating-cta-text {
        display: none;
    }
    
    .floating-cta-secondary {
        padding: 0 10px;
    }
    
    .floating-cta-secondary span {
        font-size: 14px;
    }
}

/* Contact page specific styles */
.contact-hero {
    background-color: var(--primary-color);
    margin-top: -1.5rem;
    padding: 4rem 0;
    color: white;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    z-index: 0;
}

.contact-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/pattern.svg');
    opacity: 0.1;
}

.contact-image-container {
    position: relative;
    padding: 1rem;
    transform: perspective(800px) rotateY(-8deg);
    transition: transform 0.8s ease;
    margin-left: 2rem;
}

.contact-image-container:hover {
    transform: perspective(800px) rotateY(0deg);
}

.contact-image-container img {
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.contact-image-container::before {
    content: '';
    position: absolute;
    top: 3rem;
    right: -1rem;
    bottom: -1rem;
    left: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* Contact Info Card */
.contact-info-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 60px;
    background-color: var(--primary-color);
    border-top-left-radius: var(--border-radius);
}

.contact-card-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.contact-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: white;
}

.contact-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: var(--primary-color);
}

.social-media-links {
    margin-top: 2.5rem;
}

.social-media-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Contact Form Card */
.contact-form-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-top-right-radius: var(--border-radius);
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.15);
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Location Cards for Map Section */
.locations-section {
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.location-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.location-list li {
    margin-bottom: 0.5rem;
}

.location-list a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.location-list a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.location-list a:hover i {
    transform: translateX(3px);
}

/* Reduced Animation Delays */
[data-aos] {
    transition-duration: 800ms !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-image-container {
        margin-top: 2rem;
        margin-left: 0;
    }
    
    .contact-info-card, 
    .contact-form-card {
        padding: 2rem;
    }
    
    .contact-card-title {
        text-align: center;
    }
    
    .contact-card-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .contact-image-container {
        display: none;
    }
    
    .contact-hero {
        text-align: center;
    }
    
    .contact-card-title {
        font-size: 1.3rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

/* Utility Classes */
.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    .section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
