/* Main Design Tokens - Corporate Tech Blue Theme */
:root {
    --primary: #0A1F44;
    /* Deep Blue */
    --secondary: #1E5EFF;
    /* Royal Blue */
    --accent: #00C2FF;
    /* Light Blue */
    --light-bg: #F4F6F9;
    /* Light Gray */
    --dark-text: #222222;
    /* Dark Gray */
    --white: #ffffff;
    --border-color: #e2e8f0;

    --tech-gradient: linear-gradient(135deg, #0A1F44 0%, #1E5EFF 100%);
    --accent-gradient: linear-gradient(135deg, #1E5EFF 0%, #00C2FF 100%);
    --shadow-sm: 0 2px 4px rgba(10, 31, 68, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 31, 68, 0.12);
}

/* Base Styles */
body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    font-family: 'Outfit', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
}

.text-primary {
    color: var(--secondary) !important;
}

.text-secondary {
    color: #64748b !important;
}

/* Muted text */
.text-dark {
    color: var(--primary) !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-morning {
    background: var(--tech-gradient);
}

/* Layout Components */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--primary) !important;
}

.navbar .nav-link {
    color: var(--primary) !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--secondary) !important;
}

.dropdown-menu {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
}

.dropdown-item {
    color: var(--primary);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--secondary);
}

/* Cards & Surfaces */
.card {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card,
.product-card {
    transition: all 0.3s ease;
}

.service-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--accent) !important;
}

.bg-surface {
    background-color: var(--white) !important;
}

.industry-card {
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid var(--border-color);
}

.industry-card:hover {
    background: var(--light-bg) !important;
    transform: scale(1.05);
    border-color: var(--secondary);
}

/* Form Elements */
.form-control {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: var(--dark-text) !important;
    padding: 12px 20px;
}

.form-control:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 0.25rem rgba(30, 94, 255, 0.1);
}

.form-label {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Buttons */
.btn-gradient {
    background: var(--tech-gradient);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.2);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.3);
    opacity: 0.95;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Page Header Sections */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: white !important;
}

/* Helpers */
.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.border {
    border-color: var(--border-color) !important;
}

.tiny {
    font-size: 0.75rem;
}

.object-fit-cover {
    object-fit: cover;
}

/* List Group */
.list-group-item {
    background-color: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--primary) !important;
    font-weight: 500;
}

.list-group-item:hover {
    background-color: var(--light-bg) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2.1rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .navbar-collapse {
        background-color: white;
        padding: 24px;
        border-radius: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }
}

/* Product Specific Enhancements */
.product-card .product-img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transition-hover {
    transition: all 0.3s ease;
}

.hover-border-primary:hover {
    border-color: var(--secondary) !important;
    background-color: #fff !important;
    box-shadow: var(--shadow-md);
}

.product-image-container {
    perspective: 1000px;
}

.product-image-container img {
    transition: transform 0.5s ease;
}

.product-image-container:hover img {
    transform: rotateY(-5deg) rotateX(2deg);
}

/* Footer Visibility Fixes */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: white !important;
}

footer h4 span {
    color: var(--accent) !important;
}

footer .text-secondary,
footer ul li.text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-primary {
    color: var(--accent) !important;
}

footer a.text-secondary:hover {
    color: white !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Technology Slider */
.tech-slider {
    width: 100%;
    position: relative;
    white-space: nowrap;
}

.tech-track {
    display: flex !important;
    width: max-content;
    animation: scroll 30s linear infinite;
    padding: 15px 0;
}

.tech-item {
    flex: 0 0 auto;
    color: white;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the width (original items) */
}

.tech-slider:hover .tech-track {
    animation-play-state: paused;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
    background-color: #128c7e;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}