/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
    /* Consistent light bg */
}

/* Premium Form Styles */
.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-control {
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.15);
    background-color: #fff;
    transform: translateY(-2px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glassmorphism Effect for certain cards if needed */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {

    h1.display-4,
    h1.display-3 {
        font-size: 2.5rem;
    }

    h2.display-5 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 60vh !important;
        /* Smaller text on mobile */
    }

    .section-block {
        text-align: center;
    }

    .section-icon {
        margin: 0 auto 1rem auto;
    }

    .header-banner {
        height: 200px !important;
    }

    .header-banner h1 {
        font-size: 2rem;
    }
}

/* Client Grid Page */
.client-card img {
    max-height: 80px;
    transition: transform 0.3s;
}

.client-card:hover img {
    transform: scale(1.1);
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 1.2rem;
    background-color: #ffc107;
    /* Warning yellow/gold for visibility */
    color: #000;
    border: none;
}

.scroll-top-btn:hover {
    background-color: #e0a800;
    color: #000;
    transform: translateY(-5px);
}

/* Bounce Animation for Scroll Down Arrow */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-down-arrow:hover {
    color: #0044cc !important;
    /* Darker blue on hover */
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Adjust based on content width */
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 60px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 12px !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0066ff !important;
}

.dropdown-menu {
    border-radius: 12px;
    overflow: hidden;
}

/* Hover support for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0066ff;
    padding-left: 25px;
    /* Slide effect */
}

.btn-contact-nav {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    height: 85vh;
    background: linear-gradient(rgba(0, 40, 100, 0.5), rgba(0, 40, 100, 0.5)), url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    background-color: #001f3f;
    /* Deep Blue Fallback */
    margin-top: 76px;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Typography Helpers */
.text-primary {
    color: #0066ff !important;
}

.tracking-wide {
    letter-spacing: 2px;
}

/* Buttons */
.btn-primary {
    background-color: #0066ff;
    border-color: #0066ff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background-color: #004ecc;
    border-color: #004ecc;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.4);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    transition: all 0.4s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-img-wrapper {
    height: 300px;
    /* Increased from 220px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

/* Marquee / Clients */
.clients-marquee-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.clients-marquee {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    /* Slower for more items */
}

/* Pause animation on hover */
.clients-marquee-wrapper:hover .clients-marquee {
    animation-play-state: paused;
}

.clients-marquee img {
    opacity: 1;
    /* Full opacity */
    transition: all 0.3s;
    max-height: 100px;
    /* Increased from 60px */
    width: auto;
    margin: 0 40px;
    /* Increased margin */
}

.clients-marquee img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* About Page Specifics */
.section-icon {
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.min-h-400 {
    min-height: 400px;
}

.form-control:focus {
    box-shadow: none;
    border: 1px solid #0066ff;
    background-color: white;
}

/* Bootstrap override for icons inside buttons */
.btn i {
    vertical-align: middle;
}

/* Fade In Page Transition */
body {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Quick Link Hover Animation */
.hover-underline {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.hover-underline:hover {
    padding-left: 10px;
    color: #ffd700 !important;
    /* Gold highlight */
}

/* Product Image Size Increase */
.product-img-wrapper {
    height: 350px;
    /* Increased from 300px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-img-wrapper:hover {
    transform: scale(1.02);
}

/* Products Page specific Image Zoom */
.product-item img {
    transition: transform 0.3s ease;
}

.product-item img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Modern Timeline */
.modern-timeline {
    padding: 2rem 0;
}

.timeline-line {
    top: 0;
    bottom: 0;
    z-index: -1;
}

.timeline-card {
    transition: all 0.3s ease-in-out;
    position: relative;
    border-radius: 1.5rem !important;
}

.timeline-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 767.98px) {
    .timeline-line {
        display: none;
    }
}