/* Global Styles */
:root {
    --primary-blue: #1e3a8a;
    --trust-blue: #2563eb;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #334155;
    --darker-gray: #1e293b;
    --text-black: #0f172a;
    --text-light: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--trust-blue) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--trust-blue));
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--trust-blue), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--trust-blue));
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero h1 {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

/* About Section */
.about img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about img:hover {
    transform: scale(1.02);
}

.credentials p {
    margin-bottom: 0.5rem;
}

/* Services Section */
.services .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.services .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--trust-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.services .card:hover::before {
    transform: scaleX(1);
}

.services .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.services .card-body {
    padding: 2rem;
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    transition: all 0.3s ease;
}

.services .card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--trust-blue);
}

.services .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Benefits Section */
.benefits {
    background: var(--white);
    padding: 80px 0;
}

.benefit-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    transition: all 0.3s ease;
}

.benefits .text-center:hover .benefit-icon i {
    transform: scale(1.1);
    color: var(--trust-blue);
}

.benefits h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Process Section */
.process {
    background: var(--light-gray);
    padding: 80px 0;
}

.step {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.step:hover {
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.step-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    transition: all 0.3s ease;
}

.step:hover .step-icon i {
    transform: scale(1.1);
    color: var(--trust-blue);
}

.step h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--darker-gray) 0%, #0f172a 100%) !important;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--trust-blue), var(--accent-blue));
}

.footer h5 {
    color: var(--white) !important;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-blue);
}

.footer p {
    color: var(--white) !important;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer a {
    text-decoration: none;
    color: var(--white) !important;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
    padding-left: 0;
}

.footer a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-blue) !important;
    text-decoration: none;
    transform: translateX(5px);
    padding-left: 15px;
}

.footer a:hover::before {
    opacity: 1;
    left: 0;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer hr {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    height: 1px;
    border: none;
    margin: 3rem 0 2rem;
}

.footer .text-center p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .about img {
        margin-bottom: 2rem;
    }
    
    .footer {
        text-align: center;
        padding: 3rem 0 1.5rem;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-icon, .benefit-icon, .contact-icon {
        height: 60px;
    }
    
    .step {
        margin-bottom: 1rem;
    }
    
    .services .card-body,
    .contact-form .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h2.display-5 {
        font-size: 2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 993px) {
    .hero {
        padding: 120px 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Small adjustments for very small screens */
@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    h2.display-5 {
        font-size: 1.75rem;
    }
    
    .services .card-body,
    .contact-form .card-body {
        padding: 1.25rem;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--trust-blue);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Form Styles */
.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-black);
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Contact Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--trust-blue));
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    animation: float 20s ease-in-out infinite;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.contact-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon i {
    transition: all 0.3s ease;
}

.contact-info .text-center:hover .contact-icon i {
    transform: scale(1.1);
    color: var(--trust-blue);
}

.contact-form .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.contact-info .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.map-section .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.contact-info h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.accordion-item {
    border: 1px solid var(--medium-gray);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    background-color: var(--white);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(24%) sepia(79%) saturate(499%) hue-rotate(197deg) brightness(96%) contrast(96%);
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #ef4444;
    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='%23ef4444'%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='%23ef4444' stroke='none'/%3e%3c/svg%3e");
}

.was-validated .form-select:valid {
    border-color: #10b981;
}

.was-validated .form-select:invalid {
    border-color: #ef4444;
}

/* Success/Error Message Styles */
.form-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803d;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.form-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

/* Responsive Styles for Contact Page */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form .card-body {
        padding: 2rem 1.5rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
    }
}

/* Additional Professional Touches */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--trust-blue));
    border-radius: 2px;
}

.badge-custom {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
}

.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Enhanced Button Styles */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 50px;
}

/* Enhanced Form Styles */
.form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-select {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-text {
    font-size: 0.875rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

/* Enhanced Card Styles */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-title {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}