:root {
    /* Brand Colors (Light Theme) */
    --color-primary: #0170B9;
    /* Official Digitorb Blue */
    --color-secondary: #0B3D5E;
    /* Darker Blue for Contrast */
    --color-accent: #00C3FF;
    /* Lighter Cyan for Highlights */

    /* Backgrounds & Surfaces */
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F8F9FA;
    /* Light Gray */
    --color-bg-alt: #E9ECEF;

    /* Typography */
    --color-text-main: #212529;
    /* Near Black */
    --color-text-muted: #6C757D;
    --color-text-light: #FFFFFF;

    /* Borders & Shadows */
    --border-color: #DEE2E6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Typography Settings */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    /* Dark Blue Headings */
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
    /* Adjusted for new logo */
    width: auto;
}

.nav-link {
    color: var(--color-text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-primary-glow {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.3);
}

.btn-primary-glow:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 112, 185, 0.4);
    color: #fff;
}

/* Hero Section Overhaul */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    min-height: 85vh;
    /* Taller for impact */
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(-45deg, #0b3d5e, #0170b9, #00c3ff, #0b3d5e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
    /* Blend video/image with the gradient */
    mix-blend-mode: overlay;
}

.hero-video-container video,
.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback image */
.hero-fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    background: url('../assets/images/software_hero_bg.png') no-repeat center center/cover;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 61, 94, 0.7) 0%, rgba(11, 61, 94, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 4.5rem;
    /* Larger title */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff !important;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gradient {
    background: linear-gradient(to right, #66FCF1, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: none;
    /* Text shadow can break bg-clip */
    display: inline-block;
    /* Helps with gradient rendering */
}


/* Service Cards */
.bg-surface {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(1, 112, 185, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
    font-size: 2rem;
}

/* Modern Service Cards */
/* Modern Service Cards (Mobile First) */
/* Modern Service Cards (Mobile First) */
.service-card {
    background: #fff;
    /* Make border slightly more visible to pop against white bg */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    /* Stronger shadow for clear depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    /* More padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient top border or accent */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* Slightly thicker */
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 1;
    /* Full opacity */
}

/* Hover effect only for devices that support it */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    }
}

.icon-box-modern {
    width: 80px;
    height: 80px;
    /* Persistent gradient background */
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    border: 1px solid rgba(1, 112, 185, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box-modern {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(1, 112, 185, 0.2);
}

/* Gradient Button */
.btn-gradient-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, #00c3ff 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(90deg, #00c3ff 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 112, 185, 0.4);
    color: #fff;
}

/* Team Section */
.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-bg-surface);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.team-working-img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.team-working-img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: #F8F9FA;
    border-top: 1px solid var(--border-color);
    color: var(--color-text-muted);
}

footer h5 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Forms */
.form-control {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(1, 112, 185, 0.25);
}

/* Utilities */
.letter-spacing-2 {
    letter-spacing: 2px;
}

.opacity-75 {
    opacity: 0.75;
}

/* Mobile Menu Fix */
.navbar-toggler {
    border-color: var(--border-color);
}

.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(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Verifications */
@media (max-width: 768px) {
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }

    .hero-section {
        padding: 6rem 0 3rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Readable size on mobile */
    }

    .btn {
        width: 100%;
        /* Full width buttons for better touch targets */
        margin-bottom: 10px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .team-working-img {
        margin-top: 2rem;
        width: 100%;
        height: auto;
    }
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(1, 112, 185, 0.3);
}

/* Override default bootstrap icon colors */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    /* Remove default SVG */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inject Font Awesome icons instead */
.carousel-control-prev::after {
    content: "\f053";
    /* fa-chevron-left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.carousel-control-next::after {
    content: "\f054";
    /* fa-chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.carousel-control-prev:hover::after,
.carousel-control-next:hover::after {
    color: #fff;
}

/* Mobile adjustments for carousel arrows */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Team Atmosphere Styling */
.team-atmosphere-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-atmosphere-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.team-atmosphere-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

/* Back Link (Previous Edit) */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-bottom: 2.5rem;
    text-decoration: none;
    opacity: 0.7;
}

.back-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary);
    opacity: 1;
}

.back-link:hover i {
    transform: translateX(-5px);
}