:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --hero-bg: #f8f9fa;
    --footer-bg: #212529;
    --particle-bg: #f8f9fa;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

.hero-section {
    padding: 120px 0 100px;
    background-color: #f4f9fd;
    background-image: 
        radial-gradient(at 10% 10%, rgba(200, 240, 250, 0.9) 0%, transparent 60%),
        radial-gradient(at 90% 10%, rgba(235, 225, 255, 0.9) 0%, transparent 60%),
        radial-gradient(at 50% 110%, rgba(13, 110, 253, 0.35) 0%, transparent 70%);
}

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

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-logo {
    max-height: 65px;
    width: auto;
    mix-blend-mode: multiply;
    transition: max-height 0.3s ease;
}

.main-header {
    background-color: #ffffff; /* Solid white */
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Admin pages: offset content below the fixed navbar */
.admin-page {
    padding-top: 100px;
}


.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Custom Footer Styles */
.custom-footer {
    background-color: #121117;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.custom-footer .footer-logo {
    max-width: 200px;
    height: auto;
}

.custom-footer .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-weight: 500;
}

.custom-footer .footer-social a {
    color: #ffffff;
    font-size: 1.2rem;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-footer .footer-social a:hover {
    color: #f25e2e;
}

.custom-footer .footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
}

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

.custom-footer .footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.custom-footer .footer-links a:hover {
    color: #ffffff;
}

.custom-footer .footer-chevron {
    color: #f25e2e;
    font-size: 0.8rem;
    margin-right: 8px;
    font-weight: bold;
}

.custom-footer .footer-contact li {
    font-size: 0.9rem;
}

.custom-footer .footer-contact-icon {
    color: #f25e2e;
    font-size: 1.1rem;
}

.custom-footer .footer-divider {
    border-color: #2a2a35;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.stats-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-0-5s {
    animation-delay: 0.5s;
}

/* Delay for team card stagger */
.team-card-stagger:nth-child(1) { animation-delay: 0.1s; }
.team-card-stagger:nth-child(2) { animation-delay: 0.2s; }
.team-card-stagger:nth-child(3) { animation-delay: 0.3s; }
.team-card-stagger:nth-child(4) { animation-delay: 0.4s; }

/* Navigation Icons */
.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    fill: currentColor;
}

.nav-link:hover .nav-icon {
    animation: iconBounce 0.5s ease;
    color: var(--primary-color);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* Case Study Styles */
.case-study-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-study-feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.1);
}

.case-study-tech-badge {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.case-study-tech-badge:hover {
    background: #e9ecef;
}

.case-study-stat-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 28px 20px;
    transition: transform 0.3s ease;
}

.case-study-stat-card:hover {
    transform: translateY(-4px);
}

.case-study-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.case-study-timeline {
    position: relative;
    padding-left: 32px;
}

.case-study-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e9ecef;
}

.case-study-timeline-item {
    position: relative;
    padding-bottom: 24px;
    display: flex;
    align-items: flex-start;
}

.case-study-timeline-item:last-child {
    padding-bottom: 0;
}

.case-study-timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    left: -26px;
    top: 6px;
}

.case-study-timeline-content {
    padding-left: 8px;
}

/* Horizontal Services Carousel */
.services-carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    padding-top: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-snap-type: x mandatory;
}

.services-carousel-container::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.services-carousel {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    padding: 0 1rem;
}

.services-carousel > .service-card-wrapper {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: center;
}

@media (max-width: 768px) {
    .services-carousel > .service-card-wrapper {
        width: 85vw;
    }
}

/* Technology Expertise Section */
.expertise-tabs .nav-link {
    border: 1px solid #1a365d;
    border-radius: 30px;
    padding: 8px 30px;
    color: #1a365d;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.expertise-tabs .nav-link:hover {
    background-color: rgba(26, 54, 93, 0.05);
}

.expertise-tabs .nav-link.active {
    background-color: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

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

.tech-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.tech-card h6 {
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

/* Service Page & Dynamic Page Utilities */
.icon-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.icon-box:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.cta-section {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    position: relative;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 32px;
    color: #4b5563;
}

.feature-list li::before {
    content: "\F26A"; /* Bootstrap Icon: check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 1.1rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}