/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #333;
}

/* Enhanced animations */
@keyframes gentleFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatSlow {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gentle-fade {
    animation: gentleFadeIn 1s ease-out forwards;
}

.gentle-slide {
    animation: gentleSlideIn 1s ease-out forwards;
}

.float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

.hover-float:hover {
    animation: floatSlow 5s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}
.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}
.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}
.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}
.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}
.delay-6 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Decorative elements with animation */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    --tw-bg-opacity: 0.3 !important;
    animation: pulse 6s ease-in-out infinite;
}

/* Glassmorphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced shadows */
.soft-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.soft-shadow-lg {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

.glow-shadow {
    box-shadow: 0 0 40px rgba(6, 166, 138, 0.3);
}

/* Product card with enhanced hover */
.product-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.product-card:hover .product-image {
    transform: scale(1.08) rotate(2deg);
}

.product-image {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Angled image styles */
.angle-image-container {
    transform: rotate(-3deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.angle-image-container:hover {
    transform: rotate(0deg);
}

.angle-image-reverse {
    transform: rotate(3deg);
    transition: transform 0.5s ease;
}

.angle-image-reverse:hover {
    transform: rotate(0deg);
}

/* Light card hover with glow */
.light-card {
    transition: all 0.4s ease;
    position: relative;
}

.light-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.light-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(6, 166, 138, 0.2);
}

.light-card:hover::before {
    background: linear-gradient(135deg, #06a68a, #f48a3a);
    opacity: 1;
}

/* Pill badge with shimmer */
.pill-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #eaf9ef, #d4e8de);
    color: #06a68a;
    border: 2px solid rgba(6, 166, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.pill-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Enhanced button */
.soft-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(244, 138, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.soft-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}

.soft-button:hover::before {
    width: 300px;
    height: 300px;
}

.soft-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(244, 138, 58, 0.4);
}

/* Outlined card */
.outlined-card {
    border: 2px solid transparent;
    background: #ffffff;
    transition: all 0.3s ease;
}

.outlined-card:hover {
    border-color: inherit;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Top navigation with blur */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Timeline connector */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: #06a68a;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-dot::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid #06a68a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

/* Mobile menu */
.mobile-drawer {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* Floating emoji badges */
.emoji-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.emoji-badge:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, #06a68a, #f48a3a, #06a68a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Stats counter animation */
.stat-number {
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(135deg, #06a68a, #0a8c72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline (for company page) */
.timeline-item {
    position: relative;
    padding-left: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(to bottom, #06a68a, #d4e8de);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -10px;
    top: 20px;
    width: 50px;
    height: 50px;
    background: #06a68a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(6, 166, 138, 0.3);
}

/* Icon badge */
.icon-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(6, 166, 138, 0.2);
    transition: all 0.3s ease;
}

.icon-badge:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(6, 166, 138, 0.4);
}

/* Products page specific styles */
.product-detail-card {
}

/* Stylish product image wrapper */
.stylish-image-wrapper {
    position: relative;
}

.stylish-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.6)
    );
    border-radius: 2rem;
    transform: rotate(-2deg);
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stylish-image-wrapper::after {
    content: "";
    position: absolute;
    inset: -4px;
    background: white;
    border-radius: 2rem;
    transform: rotate(1deg);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stylish-image-wrapper img {
    position: relative;
    z-index: 3;
    filter: brightness(1.05) contrast(1.05);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoom 0.3s ease-out;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 1rem;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lightbox-close:hover {
    background: #06a68a;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden on company page */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lightbox-nav:hover {
    background: #06a68a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.product-image-clickable {
    cursor: pointer;
}

/* Text color utility classes */
.text-accent {
    color: #f48a3a;
}

.text-teal {
    color: #06a68a;
}

/* Patent and Award image hover effects */
.patent-image-wrapper img,
.award-image-wrapper img {
    transition: all 0.3s ease;
}

.patent-image-wrapper:hover img,
.award-image-wrapper:hover img {
    box-shadow: 0 8px 30px rgba(6, 166, 138, 0.4);
    transform: scale(1.05);
}

/* Mobile adjustments for civilian use section cards */
@media (max-width: 767px) {
    [data-section-id="civilian"] .grid > div.rounded-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
