/* Roles Section Styles */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent !important;
}

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

/* Different border colors on hover */
.card.border-primary:hover {
    border-color: #0d6efd !important;
}
.card.border-success:hover {
    border-color: #198754 !important;
}
.card.border-info:hover {
    border-color: #0dcaf0 !important;
}

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Height of your navbar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 80px; /* For fixed navbar */
}

/* Section padding for proper scroll positioning */
section {
    scroll-margin-top: 80px; /* Same as navbar height */
    padding-top: 1px; /* Create a new stacking context */
    margin-top: -1px; /* Counteract the padding */
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #f8f9fa;
    --bs-light: #212529;
    --bs-dark: #f8f9fa;
    --bs-card-bg: #2d2d2d;
    --bs-border-color: #444;
    
    .card {
        background-color: var(--bs-card-bg);
        border-color: var(--bs-border-color);
    }
    
    .bg-light {
        background-color: var(--bs-dark) !important;
        color: var(--bs-light) !important;
    }
    
    .navbar-light .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .navbar-light .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 1);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Sections */
section {
    padding: 5rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0; /* Mobile-friendly spacing */
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
        padding: 0;
    }
}

[data-bs-theme="dark"] #home {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

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

.card-body {
    padding: 2rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 1rem 0;
    margin: 0;
    line-height: 1.2;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 100px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .company-name {
    font-size: 2.5rem;
    margin-left: 1rem;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

/* Adjust navbar height on mobile */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 100px;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .navbar-brand .company-name {
        font-size: 1.8rem;
    }
}

/* Adjust content padding to account for fixed navbar */
body {
    padding-top: 120px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

/* Mobile Bottom Navigation */
.fixed-bottom {
    z-index: 1030;
}

/* Form Styles */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Contact Form */
#contact .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    section {
        padding: 3rem 0;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    [data-bs-theme="dark"] .navbar-collapse {
        background-color: #2d2d2d;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.process-step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
    transform: scale(1.3);
}

.process-connector {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 1rem;
}

.process-line {
    height: 2px;
    background: #e9ecef;
    flex-grow: 1;
    position: relative;
}

.process-arrow {
    color: #6c757d;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 2rem;
    }
    
    .process-connector {
        display: none;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .process-step {
    background-color: var(--bs-card-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .process-arrow {
    background-color: var(--bs-card-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .process-line {
    background: rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}
