/**
 * Main Stylesheet
 *
 * This file contains the global styles for the Blue Nickel Solutions website.
 * It defines the color palette, typography, utility classes, and specific
 * component styles for the header, footer, hero section, and more.
 */

:root {
    /* Corporate Color Palette - Professional & Trustworthy */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;

    /* Classic Corporate Blue */
    --primary-blue: #003366;
    /* Deep Navy Blue */
    --secondary-blue: #004080;
    /* Slightly lighter navy for hovers */
    --accent-gold: #c5a059;
    /* Subtle gold/beige for accents - optional, adds class */

    --text-main: #2c3e50;
    /* Dark Blue-Gray for text */
    --text-muted: #546e7a;
    --white: #ffffff;
    --border-color: #e9ecef;

    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 51, 102, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Replaces the gradient text with a solid professional color */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--secondary-blue);
    /* Fallback */
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button Shine Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::after {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-filled {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.2);
}

.btn-filled:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 51, 102, 0.3);
}

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 0;
}

header.scrolled {
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Bootstrap Navbar Overrides */
.navbar-brand img {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 25px 15px !important;
    border-radius: 0;
    transition: color 0.3s ease;
    margin: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove old underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

/* Hover Effect */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
    background: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    animation: dropdownFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    transform-origin: top center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 10px 20px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background-color: rgba(0, 51, 102, 0.04);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Offcanvas Mobile Menu */
.offcanvas {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.offcanvas-header .btn-close {
    box-shadow: none;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .offcanvas {
        width: 320px !important;
        border-left: none;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse {
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 20px;
    }

    .offcanvas-body {
        padding: 30px;
    }

    .nav-link {
        padding: 12px 0 !important;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent;
        padding-left: 10px !important;
    }
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85), rgba(0, 30, 60, 0.7));
    z-index: 1;
}

.hero-bg {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Hero Specific Overrides */
.hero .text-gradient {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.hero .btn-primary {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.hero .btn-primary:hover {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
}

.hero .btn-filled {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero .btn-filled:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: transparent;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.75rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.card:hover .icon-box {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotateY(180deg);
}

.card:hover .icon-box i {
    transform: rotateY(-180deg);
    /* Counter-rotate icon */
}

/* Trusted By */
.trusted-by {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

/* Client Logo Links & Tooltips */
.client-logo-link {
    position: relative;
    display: inline-block;
    transition: var(--transition);
    opacity: 0.5;
    filter: grayscale(100%);
}

.client-testimonial {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background-color: var(--white);
    color: var(--text-main);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    text-align: center;
    pointer-events: none;
}

.client-testimonial::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.client-logo-link:hover .client-testimonial {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.client-testimonial p {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-main);
}

.client-testimonial .author {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-logo-link:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.client-logo {
    height: 60px;
    width: auto;
    display: block;
    max-width: 180px;
    object-fit: contain;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

/* Footer */
footer {
    background: #002244;
    /* Darker blue for footer */
    padding: 80px 0 30px;
    color: var(--white);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
    display: inline-block;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-link i {
    color: var(--white);
}

.contact-link a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.contact-link a:hover {
    color: var(--white);
    text-decoration: none;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations - Subtle Fade In */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-btns .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

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

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 12px;
    border: none;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 1;
    margin-bottom: 25px;
}

.quote-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.quote-author {
    border-top: none;
    padding-top: 0;
}

/* Product Portfolio */
/* Product Portfolio - Pill Layout */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-pill {
    display: flex;
    align-items: center;
    padding: 12px 25px 12px 12px;
    border-radius: 60px;
    color: var(--white);
    width: 340px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-pill:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.pill-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pill-icon img {
    max-height: 32px;
    max-width: 32px;
}

.pill-content h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pill-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Product Specific Colors */
.product-pill {
    background-color: var(--primary-blue);
    /* Fallback */
}

.product-dart {
    background-color: #005b96;
}

.product-fluid {
    background-color: #e1ad01;
}

.product-opto {
    background-color: #556b2f;
}

.product-phoenix-db {
    background-color: #8b0000;
}

.product-phoenix-rte {
    background-color: #c1272d;
}

.product-psibyl {
    background-color: #d2691e;
}

.product-olympus {
    background-color: #003366;
}

.product-asset-tree {
    background-color: #2E8B57;
}

.product-downtrax {
    background-color: #B4B010;
}

.quote-author strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.quote-author span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Modern Backgrounds */
.bg-tech-lines {
    background-color: #f8f9fa;
    background-image:
        radial-gradient(#003366 0.5px, transparent 0.5px),
        radial-gradient(#003366 0.5px, #f8f9fa 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 1;
}

.bg-blue-section {
    background: linear-gradient(180deg, #f0f4f8 0%, #e1e8ef 100%);
    position: relative;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
}

/* Solutions Side Navigation */
/* Solutions Side Navigation */
.solutions-nav-container {
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
}

.solutions-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: transparent !important;
    text-transform: none;
    /* Reset uppercase from global nav */
    letter-spacing: normal;
}

.solutions-nav .nav-link::after {
    display: none;
    /* Remove the underline effect from global nav */
}

.solutions-nav .nav-link:hover {
    color: var(--primary-blue) !important;
    background: rgba(0, 51, 102, 0.03) !important;
    padding-left: 25px !important;
}

.solutions-nav .nav-link.active {
    color: var(--primary-blue) !important;
    background: rgba(0, 51, 102, 0.06) !important;
    border-left-color: var(--primary-blue);
    font-weight: 700;
}

.solution-item {
    margin-bottom: 30px;
    scroll-margin-top: 140px;
}

/* Mobile Solutions Nav */
@media (max-width: 991px) {
    .solutions-nav-container {
        border-right: none;
        margin-bottom: 20px;
        padding-bottom: 0;
    }
}


/* Solution Summary Card */
.solution-summary-card {
    transition: var(--transition);
    border: 1px solid var(--border-color) !important;
}

.solution-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-blue) !important;
}

.solution-summary-card .icon-box {
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.solution-summary-card:hover .icon-box {
    transform: none !important;
    background: transparent !important;
    color: var(--primary-blue) !important;
}

.solution-summary-card:hover .icon-box i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}