/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004085;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --primary-rgb: 0, 86, 179;
    --secondary-rgb: 0, 64, 133;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Arial', sans-serif;
}

section {
    padding-top: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
}

/* Enhanced Navbar Styles */
.navbar {
    background: linear-gradient(to right, #001f3f, #003366) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0,31,63,0.98) !important;
    padding: 0.3rem 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover:before {
    width: 100%;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Logo Styles */
.navbar-brand {
    padding: 8px 0;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    margin-right: 2rem;
    position: relative;
    overflow: hidden;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,0.1),
        rgba(255,255,255,0)
    );
    transition: left 0.5s ease;
}

.navbar-brand:hover::after {
    left: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.logo-img {
    height: 87px;
    /* width: 220px; */
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand:hover .logo-img {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 15px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #ffffff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* Logo Animation */
@keyframes compassSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar-brand:hover .logo-img circle:nth-child(3) {
    animation: compassSpin 2s linear infinite;
    transform-origin: 40px 30px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    color: white;
    position: relative;
    background: #000;
    margin-top: calc(-1 * var(--header-height));
}

.hero-slide {
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

#heroCarousel {
    position: relative;
    height: 100%;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 4px);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.aviation-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-image: 
        linear-gradient(135deg, #1e3c72 0%, #2a5298 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px);
}

.marine-banner {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-image: 
        linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px);
}

.tech-banner {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    background-image: 
        linear-gradient(135deg, #000428 0%, #004e92 100%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px);
}

.hero-slide h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-slide .lead {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-slide .btn-primary {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-slide .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-item .animated {
    animation-duration: 1.5s;
}

.carousel-item.active h1.animated.fadeInDown {
    animation: fadeInDown 1s ease-in;
}

.carousel-item.active p.animated.fadeInUp,
.carousel-item.active .btn.animated.fadeInUp {
    animation: fadeInUp 1s ease-in;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Enhanced Slider Animations */
.carousel-item {
    transition: transform .6s ease-in-out;
}

.carousel-item.active .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active h1.animated.fadeInDown {
    animation-delay: 0.2s;
}

.carousel-item.active p.animated.fadeInUp {
    animation-delay: 0.4s;
}

.carousel-item.active .btn.animated.fadeInUp {
    animation-delay: 0.6s;
}

/* Smooth Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    transform: scale(1.2);
}

/* Section Styles */
.section-title {
    margin-bottom: 2rem;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 1rem;
}

section {
    position: relative;
    z-index: 1;
    background: #fff;
}

section#about {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    padding-top: calc(var(--header-height) + 2rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Service Boxes */
.service-box {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box i {
    color: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 400% 400%;
    background-image: linear-gradient(
        45deg,
        rgba(var(--primary-rgb), 0.2) 0%,
        rgba(var(--secondary-rgb), 0.2) 50%,
        rgba(var(--primary-rgb), 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientBG 15s ease infinite;
}

.product-image.aviation-bg {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('../images/aviation.png');
}

.product-image.marine-bg {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('../images/marine.png');
}

.product-card:hover .product-image::before,
.product-card:hover .product-image::after {
    opacity: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-content {
    padding: 2rem;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.product-feature {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-feature:hover {
    transform: translateY(-5px);
}

.product-feature i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-feature h5 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.product-feature p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer Logo */
.footer-logo {
    text-align: left;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo-img {
        height: 35px;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}