/* PepcoGel Advanced Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove default focus outline and add custom */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Advanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes orbit-1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes orbit-2 {
    0% {
        transform: rotate(72deg) translateX(140px) rotate(-72deg);
    }
    100% {
        transform: rotate(432deg) translateX(140px) rotate(-432deg);
    }
}

@keyframes orbit-3 {
    0% {
        transform: rotate(144deg) translateX(130px) rotate(-144deg);
    }
    100% {
        transform: rotate(504deg) translateX(130px) rotate(-504deg);
    }
}

@keyframes orbit-4 {
    0% {
        transform: rotate(216deg) translateX(110px) rotate(-216deg);
    }
    100% {
        transform: rotate(576deg) translateX(110px) rotate(-576deg);
    }
}

@keyframes orbit-5 {
    0% {
        transform: rotate(288deg) translateX(100px) rotate(-288deg);
    }
    100% {
        transform: rotate(648deg) translateX(100px) rotate(-648deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply animations */
.animate-blob {
    animation: blob 7s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

.animate-orbit-1 {
    animation: orbit-1 20s linear infinite;
}

.animate-orbit-2 {
    animation: orbit-2 25s linear infinite;
}

.animate-orbit-3 {
    animation: orbit-3 30s linear infinite;
}

.animate-orbit-4 {
    animation: orbit-4 22s linear infinite;
}

.animate-orbit-5 {
    animation: orbit-5 28s linear infinite;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Animation delays */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #10b981);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

/* Enhanced Cards */
.feature-card,
.product-card,
.application-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover,
.product-card:hover,
.application-card:hover {
    transform: translateY(-10px);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Product filter transitions */
.product-filter {
    transition: all 0.3s ease;
}

.product-filter.active {
    background: linear-gradient(to right, #2563eb, #06b6d4) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.product-item {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Stats counter animation */
.stat-counter {
    transition: transform 0.3s ease;
}

.stat-counter:hover {
    transform: scale(1.1);
}

/* Form enhancements */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
button, a[class*="bg-gradient"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before, a[class*="bg-gradient"]::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;
}

button:hover::before, a[class*="bg-gradient"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(37, 99, 235, 0.1);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Molecular structure */
.molecule-container svg line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Timeline styling */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* FAQ Accordion */
.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Progress bars */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 100%;
    }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
}

[data-tooltip]:hover::before {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .animate-orbit-1,
    .animate-orbit-2,
    .animate-orbit-3,
    .animate-orbit-4,
    .animate-orbit-5 {
        animation: none;
    }
    
    .hero-image {
        height: 300px;
    }
}

/* Print styles */
@media print {
    nav, footer, button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
