/**
 * Savenda General Insurance - Main Stylesheet
 * 
 * Brand Colors:
 * Primary: #1a1f69 (Deep Navy Blue)
 * Secondary: #99b0e2 (Light Blue)
 * Accent: #7a7a7a (Gray)
 */

/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    --primary: #1a1f69;
    --primary-dark: #12154d;
    --primary-light: #2a3189;
    --secondary: #99b0e2;
    --secondary-light: #b8c9ed;
    --accent: #7a7a7a;
    --accent-light: #9a9a9a;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --light-gray: #e9ecef;
    --dark-text: #2c3e50;
    --body-text: #555555;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===================================
   Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Utility Classes
   =================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--accent);
    max-width: 600px;
    margin: 20px auto 0;
}

.bg-light-custom {
    background-color: var(--off-white);
}

.bg-primary-custom {
    background-color: var(--primary);
}

.text-primary-custom {
    color: var(--primary) !important;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--primary);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    background-color: var(--primary);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-left {
    color: var(--white);
}

.top-bar-left a {
    color: var(--secondary-light);
}

.top-bar-left a:hover {
    color: var(--white);
}

.top-bar-left i {
    color: var(--secondary);
}

.top-bar-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-left: 8px;
    font-size: 0.8rem;
}

.top-bar-right a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* ===================================
   Main Navigation
   =================================== */
.main-nav {
    background-color: var(--white);
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    border-radius: 0;
}

.main-nav.scrolled {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1320px;
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(26, 31, 105, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.main-nav.scrolled .navbar-brand .logo {
    height: 42px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-text);
    padding: 10px 20px !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.nav-cta {
    font-size: 0.85rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Typing animation */
.hero-content h1 .typing-text {
    display: inline;
    border-right: 3px solid var(--secondary);
    animation: blink-caret 0.75s step-end infinite;
}

.hero-content h1 .typing-text.done {
    border-right: none;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--secondary); }
}

/* Hero buttons - always inline */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons .btn {
    margin: 0;
    flex-shrink: 0;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 105, 0.75);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-pagination {
    bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    opacity: 0.5;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: var(--secondary);
    opacity: 1;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background-color: var(--white);
    padding: 60px 0;
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.stats-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background-color: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 28px;
    color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   About Preview Section
   =================================== */
.about-preview {
    padding: 100px 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary);
    color: var(--white);
    padding: 25px 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image-badge .years {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.about-image-badge span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.15rem;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-features {
    margin: 30px 0;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-feature-item i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 3px;
}

.about-feature-item h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.about-feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--accent);
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    background-color: var(--off-white);
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

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

.service-icon i {
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

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

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose-section {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-choose-section .section-title h2 {
    color: var(--white);
}

.why-choose-section .section-title h2::after {
    background-color: var(--secondary);
}

.why-choose-section .section-title p {
    color: var(--secondary-light);
}

.why-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-card-icon i {
    font-size: 24px;
    color: var(--primary);
}

.why-card h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--secondary-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background-color: var(--secondary);
    padding: 80px 0;
    position: relative;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--dark-text);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===================================
   Page Header / Banner
   =================================== */
.page-header {
    background-color: var(--primary);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1200') center/cover no-repeat;
    opacity: 0.1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.breadcrumb-nav a {
    color: var(--secondary);
}

.breadcrumb-nav a:hover {
    color: var(--white);
}

.breadcrumb-nav span {
    color: var(--white);
}

/* ===================================
   Services Page
   =================================== */
.services-grid {
    padding: 80px 0;
}

.service-detail-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

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

.service-detail-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 105, 0.3);
}

.service-detail-icon {
    position: absolute;
    bottom: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.service-detail-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-detail-content {
    padding: 50px 30px 30px;
}

.service-detail-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-detail-content p {
    color: var(--accent);
    margin-bottom: 20px;
}

.service-detail-content .btn {
    padding: 10px 25px;
    font-size: 0.85rem;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background-color: var(--off-white);
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-text);
    padding: 20px 25px;
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1f69'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background-color: var(--white);
    color: var(--body-text);
    line-height: 1.8;
}

/* ===================================
   About Page
   =================================== */
.about-intro {
    padding: 80px 0;
}

.about-intro-content h2 {
    color: var(--primary);
    margin-bottom: 25px;
}

.about-intro-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-text);
}

.mission-vision-section {
    background-color: var(--off-white);
}

.mv-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.mv-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.mv-icon i {
    font-size: 32px;
    color: var(--white);
}

.mv-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--accent);
    margin-bottom: 0;
}

.values-section {
    padding: 80px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.value-icon i {
    font-size: 20px;
    color: var(--primary);
}

.value-content h5 {
    color: var(--primary);
    margin-bottom: 8px;
}

.value-content p {
    margin-bottom: 0;
    color: var(--accent);
}

.achievements-section {
    background-color: var(--primary);
    color: var(--white);
}

.achievements-section .section-title h2 {
    color: var(--white);
}

.achievements-section .section-title h2::after {
    background-color: var(--secondary);
}

.achievement-card {
    text-align: center;
    padding: 30px;
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Contact Page
   =================================== */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    background-color: var(--primary);
    border-radius: 8px;
    padding: 40px;
    height: 100%;
    color: var(--white);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 20px;
    color: var(--secondary);
}

.contact-info-content h5 {
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

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

.contact-info-content a {
    color: var(--white);
}

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

.contact-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social h5 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    margin-right: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.contact-form-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-form-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-form-card > p {
    color: var(--accent);
    margin-bottom: 30px;
}

.form-control,
.form-select {
    font-family: var(--font-primary);
    padding: 15px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 31, 105, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 8px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.alert {
    border-radius: 4px;
    padding: 15px 20px;
}

/* ===================================
   Map Section
   =================================== */
.map-section {
    height: 400px;
    background-color: var(--light-gray);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: #0d1035;
}

.footer-main {
    padding: 80px 0 60px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-about {
    color: #a0a5c4;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

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

.footer-social a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

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

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a5c4;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact li i {
    color: var(--secondary);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1rem;
}

.footer-contact li span {
    color: #a0a5c4;
    font-size: 0.95rem;
}

.footer-contact li a {
    color: #a0a5c4;
}

.footer-contact li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    background-color: #080a24;
    padding: 20px 0;
}

.footer-bottom p {
    color: #a0a5c4;
    font-size: 0.9rem;
}

/* ===================================
   WhatsApp Floating Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    line-height: 1;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

/* ===================================
   404 Page
   =================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.error-page p {
    color: var(--accent);
    margin-bottom: 30px;
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1199.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-slide {
        height: 100vh;
        background-size: cover;
        background-position: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-section {
        margin-top: 0;
    }
    
    .stats-wrapper {
        border-radius: 0;
    }
    
    .about-image-badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: 20px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .main-nav.scrolled {
        width: calc(100% - 30px);
        top: 10px;
        padding: 8px 15px;
        border-radius: 25px;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.scrolled .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-slide {
        height: 100vh;
        background-size: cover;
        background-position: center;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    /* Stats 2x2 grid on mobile */
    .stats-wrapper .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stats-wrapper .row > div {
        width: 100%;
        max-width: 100%;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
    
    .footer-main {
        padding: 50px 0 40px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .main-nav.scrolled {
        width: calc(100% - 20px);
        top: 10px;
        padding: 8px 12px;
        border-radius: 20px;
    }
    
    .whatsapp-float {
        bottom: 85px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (max-width: 575.98px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .stats-wrapper {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .error-page h1 {
        font-size: 5rem;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}



/* Video Wrapper */
.video-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* Stats Section Styling */
.stats-section {
    position: relative;
    z-index: 3;
    padding: 80px 0;
    color: white; /* Text color for contrast */
}

/* Adjust stat items for better visibility */
.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .video-bg {
        opacity: 0.2; /* Slightly more visible on mobile */
    }
}
.video-bg-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.stats-section {
    position: relative;
    z-index: 1;
    color: #fff;
}
