/* Custom CSS for Holozonic Website */

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1E90FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0066CC;
}

/* Hero section video overlay */
.hero-overlay {
    background: linear-gradient(45deg, rgba(30, 144, 255, 0.3), rgba(138, 43, 226, 0.3));
}

/* Mega menu hover effects */
.mega-menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1E90FF;
    transition: width 0.3s ease;
}

.mega-menu-item:hover::before {
    width: 100%;
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1E90FF 0%, #32CD32 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #32CD32 0%, #8A2BE2 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #8A2BE2 0%, #1E90FF 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form styling enhancements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
}

/* Custom mobile menu animation */
.mobile-menu-enter {
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.mobile-menu-exit {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Progress bars */
.progress-bar {
    position: relative;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #1E90FF);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Service icons animation */
.service-icon {
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(circle, #1E90FF 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(30, 144, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 144, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Video overlay effects */
.video-overlay {
    background: linear-gradient(
        45deg,
        rgba(30, 144, 255, 0.4) 0%,
        rgba(50, 205, 50, 0.3) 50%,
        rgba(138, 43, 226, 0.4) 100%
    );
}

/* Responsive design helpers */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --text-primary: #ffffff;
        --border-color: #333;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #1E90FF;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000 !important;
    }
    
    .bg-gray-50 {
        background-color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(135deg, #1E90FF, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #1E90FF, #32CD32, #8A2BE2) 1;
}

/* Mobile Menu Improvements */
@media (max-width: 1023px) {
    #mobile-menu {
        transform: translateY(0);
        opacity: 1;
        transition: all 0.3s ease;
        border-top: 1px solid #e5e7eb;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    #mobile-menu.hidden {
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
    }
    
    #mobile-menu a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        margin: 4px 0;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        background-color: transparent;
    }
    
    #mobile-menu a:hover {
        background-color: rgba(30, 144, 255, 0.1);
        transform: translateX(8px);
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.15);
    }
    
    #mobile-menu a i {
        width: 20px;
        color: #1E90FF;
        font-size: 16px;
    }
    
    #mobile-menu .border-t {
        border-top: 1px solid #e5e7eb;
        margin-top: 16px;
        padding-top: 16px;
    }
}

/* Desktop Menu Adjustments */
@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
    
    /* Ensure mega menu appears correctly */
    #mega-menu {
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
} 